aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/twilio/filter_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/twilio/filter_test.go b/pkg/twilio/filter_test.go
index 764d423..8b406fb 100644
--- a/pkg/twilio/filter_test.go
+++ b/pkg/twilio/filter_test.go
@@ -50,7 +50,7 @@ func TestFilter_ServeHTTP(t *testing.T) {
w := httptest.NewRecorder()
th.ServeHTTP(w, newRequest(Post))
assert.Equal(t, http.StatusOK, w.Code)
- assert.Equal(t, "text/xml", w.HeaderMap.Get("Content-Type"))
+ assert.Equal(t, "text/xml", w.Result().Header.Get("Content-Type"))
assert.Equal(t, "<Response/>", w.Body.String())
})
@@ -58,7 +58,7 @@ func TestFilter_ServeHTTP(t *testing.T) {
w := httptest.NewRecorder()
th.ServeHTTP(w, newRequest(Get))
assert.Equal(t, http.StatusOK, w.Code)
- assert.Equal(t, "text/xml", w.HeaderMap.Get("Content-Type"))
+ assert.Equal(t, "text/xml", w.Result().Header.Get("Content-Type"))
assert.Equal(t, "<Response/>", w.Body.String())
})