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
|
// Transfer request headers
|
||||||
CefRequest::HeaderMap headerMap;
|
CefRequest::HeaderMap headerMap;
|
||||||
HttpHeaderUtils::ParseHeaders(params->headers, 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);
|
requestimpl->SetHeaderMap(headerMap);
|
||||||
|
|
||||||
// Transfer post data, if any
|
// Transfer post data, if any
|
||||||
|
@ -496,7 +496,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
||||||
// Observe headers from request.
|
// Observe headers from request.
|
||||||
request->GetHeaderMap(headerMap);
|
request->GetHeaderMap(headerMap);
|
||||||
CefString referrerStr;
|
CefString referrerStr;
|
||||||
referrerStr.FromASCII("Referrer");
|
referrerStr.FromASCII("Referer");
|
||||||
CefRequest::HeaderMap::iterator referrer =
|
CefRequest::HeaderMap::iterator referrer =
|
||||||
headerMap.find(referrerStr);
|
headerMap.find(referrerStr);
|
||||||
if (referrer == headerMap.end()) {
|
if (referrer == headerMap.end()) {
|
||||||
|
|
Loading…
Reference in New Issue