aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Darío <dgrripoll@gmail.com> 2021-02-16 21:53:40 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-16 21:53:40 +0100
commit1b61ca2e36ab3b581d667156c6b9b9141dc69827 (patch)
tree3ff2820c53bd1628a8decfe800ce0fa497bfc81c /strings.go
parentfix s2b go vet warning (#967) (diff)
downloadfasthttp-1b61ca2e36ab3b581d667156c6b9b9141dc69827.tar.gz
fasthttp-1b61ca2e36ab3b581d667156c6b9b9141dc69827.tar.bz2
fasthttp-1b61ca2e36ab3b581d667156c6b9b9141dc69827.zip
Added Protocol() as a replacement of hardcoded strHTTP11 (#969)
* Added Protocol() as a replacement of hardcoded strHTTP11 * Applied review changes * Modify h.proto in parseFirstLine
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index abd16eb..d5b030b 100644
--- a/strings.go
+++ b/strings.go
@@ -15,6 +15,7 @@ var (
strCRLF = []byte("\r\n")
strHTTP = []byte("http")
strHTTPS = []byte("https")
+ strHTTP10 = []byte("HTTP/1.0")
strHTTP11 = []byte("HTTP/1.1")
strColon = []byte(":")
strColonSlashSlash = []byte("://")