Fix Content-Disposition parsing when the filename isn't quoted
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-10-06 15:19:07 -07:00
parent bb1227eadb
commit b758eb39f0
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ func extractFile(r io.Reader, format archiver.Format, name string, opts Options)
return nil
}
var cdHeaderRgx = regexp.MustCompile(`filename="(.+)"`)
var cdHeaderRgx = regexp.MustCompile(`filename="?(.+)"?`)
// getFilename attempts to parse the Content-Disposition
// HTTP response header and extract a filename. If the