Commit e9ba9905 authored by Nick Thomas's avatar Nick Thomas

Avoid an ambiguously formattable directive

parent 8843aae4
...@@ -77,11 +77,10 @@ func TestAllowExistentContentHeaders(t *testing.T) { ...@@ -77,11 +77,10 @@ func TestAllowExistentContentHeaders(t *testing.T) {
func TestSuccessOverrideContentHeadersFeatureEnabled(t *testing.T) { func TestSuccessOverrideContentHeadersFeatureEnabled(t *testing.T) {
fixturePath := "../../testdata/forgedfile.png" fixturePath := "../../testdata/forgedfile.png"
httpHeaders := map[string]string{ httpHeaders := make(map[string]string)
headers.ContentTypeHeader: "image/png", httpHeaders[headers.ContentTypeHeader] = "image/png"
headers.ContentDispositionHeader: "inline", httpHeaders[headers.ContentDispositionHeader] = "inline"
"Range": "bytes=1-2", httpHeaders["Range"] = "bytes=1-2"
}
resp := makeRequest(t, fixturePath, httpHeaders) resp := makeRequest(t, fixturePath, httpHeaders)
require.Equal(t, "image/png", resp.Header.Get(headers.ContentTypeHeader)) require.Equal(t, "image/png", resp.Header.Get(headers.ContentTypeHeader))
......
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