aboutsummaryrefslogtreecommitdiff
path: root/fasthttpadaptor
diff options
context:
space:
mode:
authorGravatar Maxim Lebedev <git@toby3d.me> 2019-05-27 20:04:22 +0500
committerGravatar Kirill Danshin <kirill@danshin.pro> 2019-05-28 18:04:24 +0300
commitd3715c361c6d8d227117caa9a7e6872498bf7283 (patch)
tree98932544f9e85d6e0693e1467195001a5ac955f7 /fasthttpadaptor
parent:sparkles: Added headers keys constants (diff)
downloadfasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.tar.gz
fasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.tar.bz2
fasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.zip
:zap: Used Headers constants instead raw strings
Diffstat (limited to 'fasthttpadaptor')
-rw-r--r--fasthttpadaptor/adaptor_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fasthttpadaptor/adaptor_test.go b/fasthttpadaptor/adaptor_test.go
index 96a1093..452711b 100644
--- a/fasthttpadaptor/adaptor_test.go
+++ b/fasthttpadaptor/adaptor_test.go
@@ -95,7 +95,7 @@ func TestNewFastHTTPHandler(t *testing.T) {
req.Header.SetMethod(expectedMethod)
req.SetRequestURI(expectedRequestURI)
req.Header.SetHost(expectedHost)
- req.Header.Add("Transfer-Encoding", expectedTransferEncoding)
+ req.Header.Add(fasthttp.HeaderTransferEncoding, expectedTransferEncoding)
req.BodyWriter().Write([]byte(expectedBody))
for k, v := range expectedHeader {
req.Header.Set(k, v)