aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-08-18 11:23:33 +0200
committerGravatar GitHub <noreply@github.com> 2019-08-18 11:23:33 +0200
commit2edabf3b76473af8d82b4a746ae8f3f6fe31dca8 (patch)
treed029744a9046e707b26b881e7cae3c98014058bc /strings.go
parentCorrectly handle `NoDefaultContentType` without setting an `Content-Type` val... (diff)
downloadfasthttp-2edabf3b76473af8d82b4a746ae8f3f6fe31dca8.tar.gz
fasthttp-2edabf3b76473af8d82b4a746ae8f3f6fe31dca8.tar.bz2
fasthttp-2edabf3b76473af8d82b4a746ae8f3f6fe31dca8.zip
Add support for user:pass in URLs (#614)
Fixes #609
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index f654f95..343544a 100644
--- a/strings.go
+++ b/strings.go
@@ -16,9 +16,11 @@ var (
strHTTP = []byte("http")
strHTTPS = []byte("https")
strHTTP11 = []byte("HTTP/1.1")
+ strColon = []byte(":")
strColonSlashSlash = []byte("://")
strColonSpace = []byte(": ")
strGMT = []byte("GMT")
+ strAt = []byte("@")
strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n")
@@ -52,6 +54,7 @@ var (
strAcceptRanges = []byte(HeaderAcceptRanges)
strRange = []byte(HeaderRange)
strContentRange = []byte(HeaderContentRange)
+ strAuthorization = []byte(HeaderAuthorization)
strCookieExpires = []byte("expires")
strCookieDomain = []byte("domain")