[fix] NewRawResponse headers 不生效

This commit is contained in:
what 2024-11-03 00:54:28 +08:00
parent dae5b130bb
commit beeb0840d5

View File

@ -93,7 +93,7 @@ func NewHttpStatusResponse(status int, body req.HttpResponse) req.HttpResponse {
} }
func NewRawResponse(b []byte, headers ...[2]string) 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 { func NewFileResponse(name string, disposition string) req.HttpResponse {