Skip to content

Commit 8e14265

Browse files
committed
Trim quotes around Content-Disposition:filename values
1 parent ec6b5e2 commit 8e14265

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ func main() {
223223
for _, f := range fls {
224224
f = strings.TrimSpace(f)
225225
if strings.HasPrefix(f, "filename=") {
226-
fl = strings.TrimLeft(f, "filename=")
226+
f = strings.TrimLeft(f, "filename=")
227+
fl = strings.Trim(f, "\"' ")
227228
}
228229
}
229230
}

0 commit comments

Comments
 (0)