From beeb0840d5b59b3db4622d39faa6ecf8aa8a8209 Mon Sep 17 00:00:00 2001 From: what Date: Sun, 3 Nov 2024 00:54:28 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20NewRawResponse=20headers=20=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/response.go b/support/response.go index 8bd593d..ae93704 100644 --- a/support/response.go +++ b/support/response.go @@ -93,7 +93,7 @@ func NewHttpStatusResponse(status int, body req.HttpResponse) req.HttpResponse { } func NewRawResponse(b []byte, headers ...[2]string) req.HttpResponse { - return &RawResponse{raw: b} + return &RawResponse{raw: b, headers: headers} } func NewFileResponse(name string, disposition string) req.HttpResponse {