diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2019-08-18 11:23:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 11:23:33 +0200 |
commit | 2edabf3b76473af8d82b4a746ae8f3f6fe31dca8 (patch) | |
tree | d029744a9046e707b26b881e7cae3c98014058bc /strings.go | |
parent | Correctly handle `NoDefaultContentType` without setting an `Content-Type` val... (diff) | |
download | fasthttp-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.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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") |