mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 21:06:54 +00:00
Copy response headers back to client
Headers such as Realm / etc are important for auth proxies, so this change and unit test make sure they get copied back to the client. Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
95d4d50e8e
commit
c48be47db9
@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_makeLogger(t *testing.T) {
|
||||
func Test_makeLogger_CopiesResponseHeaders(t *testing.T) {
|
||||
handler := http.HandlerFunc(makeLogger(http.HandlerFunc(
|
||||
func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("X-Unit-Test", "true")
|
||||
|
Loading…
x
Reference in New Issue
Block a user