diff options
author | Maxim Lebedev <toby3d@yandex.com> | 2019-05-06 20:54:49 +0500 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-05-06 17:54:49 +0200 |
commit | f544170d6384e251aa6657e55bac36c999c86e7a (patch) | |
tree | e55dc8af183dfe5e22a2191f96460ab75282a019 /fs_test.go | |
parent | Timing fixes (#564) (diff) | |
download | fasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.tar.gz fasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.tar.bz2 fasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.zip |
Added methods constants (#567)
* :sparkles: Added methods constants
* :ok_hand: Fixed methods comment due to review changes
Diffstat (limited to 'fs_test.go')
-rw-r--r-- | fs_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,7 +101,7 @@ func TestPathNotFoundFunc(t *testing.T) { func TestServeFileHead(t *testing.T) { var ctx RequestCtx var req Request - req.Header.SetMethod("HEAD") + req.Header.SetMethod(MethodHead) req.SetRequestURI("http://foobar.com/baz") ctx.Init(&req, nil, nil) @@ -686,7 +686,7 @@ func testFileExtension(t *testing.T, path string, compressed bool, compressedFil func TestServeFileContentType(t *testing.T) { var ctx RequestCtx var req Request - req.Header.SetMethod("GET") + req.Header.SetMethod(MethodGet) req.SetRequestURI("http://foobar.com/baz") ctx.Init(&req, nil, nil) |