From: Sergey Matveev Date: Sat, 21 Feb 2026 08:55:32 +0000 (+0300) Subject: Print all headers X-Git-Tag: v1.4.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f5577a37e308acf6bdccbf41978b3d9a452e3b7c;p=meta4ra.git Print all headers --- diff --git a/cmd/dl.go b/cmd/dl.go index f8dc54e..3f41275 100644 --- a/cmd/dl.go +++ b/cmd/dl.go @@ -57,7 +57,9 @@ func runDl() { } log.Println("HTTP response:") for k := range resp.Header { - log.Printf("\t%+q: %+q\n", k, resp.Header.Get(k)) + for _, v := range resp.Header.Values(k) { + log.Printf("\t%+q: %+q\n", k, v) + } } if resp.StatusCode != http.StatusOK { log.Fatalln("status code:", resp.Status)