aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorGravatar kinggo <lilong.21@bytedance.com> 2022-12-25 16:38:13 +0800
committerGravatar GitHub <noreply@github.com> 2022-12-25 09:38:13 +0100
commitc637221c5f34859271e3af47da6ab9a910b29511 (patch)
tree92565d0cac6f43ce896ba8cc5a14c69ef63e7e6e /server.go
parentfeat: support custom formvalue function (#1453) (diff)
downloadfasthttp-c637221c5f34859271e3af47da6ab9a910b29511.tar.gz
fasthttp-c637221c5f34859271e3af47da6ab9a910b29511.tar.bz2
fasthttp-c637221c5f34859271e3af47da6ab9a910b29511.zip
optimize: allow http head when use getonly (#1456)
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index 83cf1a1..bb029ec 100644
--- a/server.go
+++ b/server.go
@@ -292,7 +292,7 @@ type Server struct {
// Rejects all non-GET requests if set to true.
//
// This option is useful as anti-DoS protection for servers
- // accepting only GET requests. The request size is limited
+ // accepting only GET requests and HEAD requests. The request size is limited
// by ReadBufferSize if GetOnly is set.
//
// Server accepts all the requests by default.