diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-05-11 23:50:22 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-05-12 17:26:26 +0700 |
| commit | c97c4ff8d531658cbce14310704c5bbb95e95dbd (patch) | |
| tree | d9ff54c583c3c46719960eb79b519905d5bfc29b /lib/http/server_test.go | |
| parent | 25caa3fb9d7c87f08afae5c7f2d742deebb88efc (diff) | |
| download | pakakeh.go-c97c4ff8d531658cbce14310704c5bbb95e95dbd.tar.xz | |
http: prefix the header constants with "Header"
Diffstat (limited to 'lib/http/server_test.go')
| -rw-r--r-- | lib/http/server_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http/server_test.go b/lib/http/server_test.go index 581539c5..7446274f 100644 --- a/lib/http/server_test.go +++ b/lib/http/server_test.go @@ -165,7 +165,7 @@ func TestRegisterDelete(t *testing.T) { test.Assert(t, "Body", c.expBody, string(body), true) - gotContentType := res.Header.Get(ContentType) + gotContentType := res.Header.Get(HeaderContentType) test.Assert(t, "Content-Type", c.expContentType, gotContentType, true) } @@ -376,9 +376,9 @@ func TestRegisterHead(t *testing.T) { true) test.Assert(t, "Body", c.expBody, string(body), true) test.Assert(t, "Header.ContentType", c.expContentType, - res.Header[ContentType], true) + res.Header[HeaderContentType], true) test.Assert(t, "Header.ContentLength", c.expContentLength, - res.Header[ContentLength], true) + res.Header[HeaderContentLength], true) } } @@ -495,7 +495,7 @@ k=vv`, t.Fatal(e) } - req.Header.Set(ContentType, ContentTypeForm) + req.Header.Set(HeaderContentType, ContentTypeForm) res, e := client.Do(req) if e != nil { |
