diff options
author | Darío <dgrripoll@gmail.com> | 2021-02-16 21:53:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 21:53:40 +0100 |
commit | 1b61ca2e36ab3b581d667156c6b9b9141dc69827 (patch) | |
tree | 3ff2820c53bd1628a8decfe800ce0fa497bfc81c /strings.go | |
parent | fix s2b go vet warning (#967) (diff) | |
download | fasthttp-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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("://") |