Open balazser opened 2 years ago
I think Pget needs this feature (wget --content-disposition
) by default enabled
see https://www.gnu.org/software/wget/manual/wget.html#index-Content_002dDisposition see https://mdn.io/Content-Disposition
https://github.com/mirror/wget/blob/aab539bb44b5d7aeb093014c21fd4f4e4e728136/src/http.c#L1221-L1299
on Golang
if mediaType, params, _ := mime.ParseMediaType(resp.Header.Get("Content-Disposition")); mediaType == "attachment" {
if remoteFilename, ok = params["filename"]; ok {
task.Filename = remoteFilename
}
}
CC @Code-Hex
On Linux using
Pget 0.1.1
installed bylinuxbrew
I'm getting the following error when I download a binary. How could we fix it?$ pget https://github.com/42wim/matterbridge/releases/download/v1.25.0/matterbridge-1.25.0-linux-64bit