summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/urlmon_url_request.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index c77df46..a72e3a2 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -591,9 +591,9 @@ STDMETHODIMP UrlmonUrlRequest::BeginningTransaction(const wchar_t* url,
// identify chromeframe as the user agent. This also ensures that the user
// agent reported in scripts in chrome frame is consistent with that sent
// in outgoing requests.
- new_headers += ReplaceOrAddUserAgent(current_headers,
- http_utils::GetChromeUserAgent());
- new_headers += AppendCFUserAgentString(UTF8ToWide(new_headers).c_str(), NULL);
+ std::string user_agent = http_utils::AddChromeFrameToUserAgentValue(
+ http_utils::GetChromeUserAgent());
+ new_headers += ReplaceOrAddUserAgent(current_headers, user_agent);
if (!new_headers.empty()) {
*additional_headers = reinterpret_cast<wchar_t*>(