From 74a51cc920ea0717c6d923dd249b13724d6f161a Mon Sep 17 00:00:00 2001 From: hellojukay Date: Fri, 12 Jan 2024 15:30:28 +0800 Subject: [PATCH] Update util.go --- util.go | 1 - 1 file changed, 1 deletion(-) diff --git a/util.go b/util.go index 71fa399..06b9f09 100644 --- a/util.go +++ b/util.go @@ -12,7 +12,6 @@ import ( ) func filename(resp *http.Response) string { - if dispos := resp.Header.Get("content-disposition"); dispos != "" { if _, params, err := mime.ParseMediaType(dispos); err == nil { if filename, ok := params["filename"]; ok {