Flatten array-based response headers

This commit is contained in:
Nick Meves
2021-02-03 16:48:26 -08:00
parent 06985879e1
commit c3f31b4dd5
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func injectResponseHeaders(injector header.Injector, next http.Handler) http.Han
// If scope is nil, this will panic.
// A scope should always be injected before this handler is called.
injector.Inject(rw.Header(), scope.Session)
flattenHeaders(req.Header)
flattenHeaders(rw.Header())
next.ServeHTTP(rw, req)
})
}