diff options
author | Maxim Lebedev <git@toby3d.me> | 2019-05-27 20:04:22 +0500 |
---|---|---|
committer | Kirill Danshin <kirill@danshin.pro> | 2019-05-28 18:04:24 +0300 |
commit | d3715c361c6d8d227117caa9a7e6872498bf7283 (patch) | |
tree | 98932544f9e85d6e0693e1467195001a5ac955f7 /fasthttpadaptor | |
parent | :sparkles: Added headers keys constants (diff) | |
download | fasthttp-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.go | 2 |
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) |