Commit 32ef35b9 authored by Matthew Holt's avatar Matthew Holt

gzip: Fix tests

parent abf22909
......@@ -108,7 +108,7 @@ func TestMIMEFilter(t *testing.T) {
}
for i, m := range mimes {
r := urlRequest("file" + m)
r.Header.Set("Content-Type", m)
r.Header.Set("Accept", m)
if !filter.ShouldCompress(r) {
t.Errorf("Test %v: Should be valid filter", i)
}
......
......@@ -89,7 +89,7 @@ func TestGzipHandler(t *testing.T) {
if err != nil {
t.Error(err)
}
r.Header.Set("Content-Type", m)
r.Header.Set("Accept", m)
r.Header.Set("Accept-Encoding", "gzip")
_, err = gz.ServeHTTP(w, r)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment