diff options
author | Wolfy-J <[email protected]> | 2018-09-30 17:58:16 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-30 17:58:16 +0300 |
commit | 734fab795eb5ee396ee76955c9ddadc4f3b09112 (patch) | |
tree | cec3a313fe207c3f91cd142d6d37202ef4db9494 /service/http/response.go | |
parent | 6122fca108c20984732c969fb1ba53cce5b3c44a (diff) |
https and http2 support
Diffstat (limited to 'service/http/response.go')
-rw-r--r-- | service/http/response.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/http/response.go b/service/http/response.go index d43f514d..4902ee70 100644 --- a/service/http/response.go +++ b/service/http/response.go @@ -31,9 +31,9 @@ func NewResponse(p *roadrunner.Payload) (*Response, error) { // Write writes response headers, status and body into ResponseWriter. func (r *Response) Write(w http.ResponseWriter) error { - for k, v := range r.Headers { - for _, h := range v { - w.Header().Add(k, h) + for n, h := range r.Headers { + for _, v := range h { + w.Header().Add(n, v) } } |