mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-23 16:01:08 +01:00
Fix misspelling of the Referer HTTP header (issue #619).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@661 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
af01dd2d82
commit
c601933e8b
@ -462,7 +462,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
||||
// Transfer request headers
|
||||
CefRequest::HeaderMap headerMap;
|
||||
HttpHeaderUtils::ParseHeaders(params->headers, headerMap);
|
||||
headerMap.insert(std::make_pair("Referrer", params->referrer.spec()));
|
||||
headerMap.insert(std::make_pair("Referer", params->referrer.spec()));
|
||||
requestimpl->SetHeaderMap(headerMap);
|
||||
|
||||
// Transfer post data, if any
|
||||
@ -496,7 +496,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
||||
// Observe headers from request.
|
||||
request->GetHeaderMap(headerMap);
|
||||
CefString referrerStr;
|
||||
referrerStr.FromASCII("Referrer");
|
||||
referrerStr.FromASCII("Referer");
|
||||
CefRequest::HeaderMap::iterator referrer =
|
||||
headerMap.find(referrerStr);
|
||||
if (referrer == headerMap.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user