From 734fab795eb5ee396ee76955c9ddadc4f3b09112 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 30 Sep 2018 17:58:16 +0300 Subject: https and http2 support --- service/http/response.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/http/response.go') 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) } } -- cgit v1.2.3