diff --git a/pkg/matchers/util.go b/pkg/matchers/util.go index 523e8e2d..12c6b5e5 100644 --- a/pkg/matchers/util.go +++ b/pkg/matchers/util.go @@ -15,7 +15,7 @@ func httpToMap(resp *http.Response, body, headers string) (m map[string]interfac m["content_length"] = resp.ContentLength m["status_code"] = resp.StatusCode for k, v := range resp.Header { - k = strings.TrimSpace(strings.Replace(k, "-", "_", -1)) + k = strings.ToLower(strings.TrimSpace(strings.Replace(k, "-", "_", -1))) m[k] = strings.Join(v, " ") } m["all_headers"] = headers