[fix] NewRawResponse headers 不生效
This commit is contained in:
parent
dae5b130bb
commit
beeb0840d5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user