summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/http_negotiate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/http_negotiate.cc b/chrome_frame/http_negotiate.cc
index aea995a..b593f28 100644
--- a/chrome_frame/http_negotiate.cc
+++ b/chrome_frame/http_negotiate.cc
@@ -135,6 +135,7 @@ std::string ReplaceOrAddUserAgent(LPCWSTR headers,
DCHECK(headers);
using net::HttpUtil;
+ std::string new_headers;
if (headers) {
std::string ascii_headers(WideToASCII(headers));
@@ -144,7 +145,6 @@ std::string ReplaceOrAddUserAgent(LPCWSTR headers,
// Build new headers, skip the existing user agent value from
// existing headers.
- std::string new_headers;
while (headers_iterator.GetNext()) {
std::string name(headers_iterator.name());
if (!LowerCaseEqualsASCII(name, kLowerCaseUserAgent)) {