rcd27
02/21/2022, 5:51 AMdownload
and I would like to keep the original one.
routing {
static("/download") {
defaultResource("distributive/loottherun-desktop-0.10.29.zip")
}
}
So when I go to localhost:8080/download
I see that browser "downloads" download
file. It is the same as my zip, but naming is wrong. How I can keep the right naming? Tried to play around arguments in defaultResource method, but didn't work.Aleksei Tirman [JB]
02/21/2022, 10:41 AM/download/loottherun-desktop-0.10.29.zip
or serve all resource from a desired package
static("/assets") {
resources("distributive")
}
rnett
02/21/2022, 4:28 PM/download
? I.e. using the Content-Disposition
headerAleksei Tirman [JB]
02/22/2022, 2:05 PMdefaultResource
, no.