Skip to content
Permalink
Browse files

fix CORS header fields from being clobbered by error pages. Closes #661

  • Loading branch information...
tj committed May 16, 2018
1 parent 8eb66f3 commit 063f8c1ce26e649f1916c32dfb33c075ff9c77a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 http/errorpages/errorpages_test.go
@@ -170,7 +170,7 @@ func nonError(h http.Handler) func(t *testing.T) {
h.ServeHTTP(res, req)

assert.Equal(t, 200, res.Code)
assert.Equal(t, "bar", res.Header().Get("ETag"))
assert.Equal(t, "something", res.Header().Get("ETag"))
assert.Equal(t, "text/plain", res.Header().Get("Content-Type"))
assert.Equal(t, "Hello World", res.Body.String())
}

0 comments on commit 063f8c1

Please sign in to comment.
You can’t perform that action at this time.