mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
cors: Removed new(?) header from test, resolving failure
"X-Content-Type-Options" was being autoadded, but none of the test maps took it into account. I saw that "Content-Type" was also being deleted, so I figured that was the best solution for this as well.
This commit is contained in:
parent
19a28c8efd
commit
327632014e
@ -117,6 +117,7 @@ func TestCORSHandler(t *testing.T) {
|
||||
}
|
||||
// it is set by http package, and there is no need to test it
|
||||
rr.HeaderMap.Del("Content-Type")
|
||||
rr.HeaderMap.Del("X-Content-Type-Options")
|
||||
if !reflect.DeepEqual(rr.HeaderMap, tt.wheader) {
|
||||
t.Errorf("#%d: header = %+v, want %+v", i, rr.HeaderMap, tt.wheader)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user