summaryrefslogtreecommitdiffstats
path: root/chrome_frame/http_negotiate.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 00:30:04 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 00:30:04 +0000
commita542e8259fe093c11a55c2656f1fdd3f76c1a1ee (patch)
tree27c37c019533c9125c52da4ab2f58d7ab01202c5 /chrome_frame/http_negotiate.cc
parentb917bd60404fb8f76860e6db5db95396166f45d9 (diff)
downloadchromium_src-a542e8259fe093c11a55c2656f1fdd3f76c1a1ee.zip
chromium_src-a542e8259fe093c11a55c2656f1fdd3f76c1a1ee.tar.gz
chromium_src-a542e8259fe093c11a55c2656f1fdd3f76c1a1ee.tar.bz2
Updates for onhttpequiv. Preserving the referrer header, zapping the currently loading document to prevent small documents from executing code.
I'm not enabling httpequiv just yet as there are a couple of things I'm working on related to tests that will break once I make the switch. TEST=There should be no change since the code isn't still active but run all tests just to be safe. BUG=none Review URL: http://codereview.chromium.org/545096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36436 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/http_negotiate.cc')
-rw-r--r--chrome_frame/http_negotiate.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome_frame/http_negotiate.cc b/chrome_frame/http_negotiate.cc
index b938cae..f118baf 100644
--- a/chrome_frame/http_negotiate.cc
+++ b/chrome_frame/http_negotiate.cc
@@ -131,7 +131,7 @@ HRESULT HttpNegotiatePatch::PatchHttpNegotiate(IUnknown* to_patch) {
HRESULT HttpNegotiatePatch::BeginningTransaction(
IHttpNegotiate_BeginningTransaction_Fn original, IHttpNegotiate* me,
LPCWSTR url, LPCWSTR headers, DWORD reserved, LPWSTR* additional_headers) {
- DLOG(INFO) << __FUNCTION__ << " " << url;
+ DLOG(INFO) << __FUNCTION__ << " " << url << " headers:\n" << headers;
HRESULT hr = original(me, url, headers, reserved, additional_headers);
@@ -145,8 +145,10 @@ HRESULT HttpNegotiatePatch::BeginningTransaction(
using net::HttpUtil;
std::string ascii_headers;
- if (*additional_headers)
+ if (*additional_headers) {
ascii_headers = WideToASCII(*additional_headers);
+ DLOG(INFO) << __FUNCTION__ << " additional headers: " << ascii_headers;
+ }
HttpUtil::HeadersIterator headers_iterator(ascii_headers.begin(),
ascii_headers.end(), "\r\n");