aboutsummaryrefslogtreecommitdiff
path: root/lib/http/server_test.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-05-11 23:50:22 +0700
committerShulhan <m.shulhan@gmail.com>2020-05-12 17:26:26 +0700
commitc97c4ff8d531658cbce14310704c5bbb95e95dbd (patch)
treed9ff54c583c3c46719960eb79b519905d5bfc29b /lib/http/server_test.go
parent25caa3fb9d7c87f08afae5c7f2d742deebb88efc (diff)
downloadpakakeh.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.go8
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 {