diff options
| author | Shulhan <m.shulhan@gmail.com> | 2021-02-10 15:21:21 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2021-02-10 15:21:21 +0700 |
| commit | 093c8bee603ce8d3f6f248975d52a1fc45f0f50f (patch) | |
| tree | c139ad8aaaa2ddf82bc18f0cfa9f34b045337fb8 /lib/http | |
| parent | f8f4fddec8ea2cb4905a6d9d466a4d9e99e2cb99 (diff) | |
| download | pakakeh.go-093c8bee603ce8d3f6f248975d52a1fc45f0f50f.tar.xz | |
http: revert the HeaderBearer back to HeaderAuthKeyBearer
The "Bearer" string is not in the header key but in the value of
"Authorization".
While at it, add HTTP header names for "Host" and "Cookie".
Diffstat (limited to 'lib/http')
| -rw-r--r-- | lib/http/http.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http/http.go b/lib/http/http.go index 175cf84b..206ca3c3 100644 --- a/lib/http/http.go +++ b/lib/http/http.go @@ -216,11 +216,13 @@ const ( HeaderACRequestMethod = "Access-Control-Request-Method" HeaderAcceptEncoding = "Accept-Encoding" HeaderAllow = "Allow" - HeaderBearer = "Bearer" + HeaderAuthKeyBearer = "Bearer" HeaderAuthorization = "Authorization" HeaderContentEncoding = "Content-Encoding" HeaderContentLength = "Content-Length" HeaderContentType = "Content-Type" + HeaderCookie = "Cookie" + HeaderHost = "Host" HeaderLocation = "Location" HeaderOrigin = "Origin" HeaderUserAgent = "User-Agent" |
