summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_handle_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/resource_handle_win.cc')
-rw-r--r--webkit/glue/resource_handle_win.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/webkit/glue/resource_handle_win.cc b/webkit/glue/resource_handle_win.cc
index 2771b21..09a22c2 100644
--- a/webkit/glue/resource_handle_win.cc
+++ b/webkit/glue/resource_handle_win.cc
@@ -90,14 +90,8 @@ static void ExtractInfoFromHeaders(const HttpResponseHeaders* headers,
long long* expected_content_length) {
*status_code = headers->response_code();
- // Set the status text (the returned status line is normalized).
- const std::string& status = headers->GetStatusLine();
- StringTokenizer status_tokenizer(status, " ");
- if (status_tokenizer.GetNext() && // identifies "HTTP/1.1"
- status_tokenizer.GetNext() && // identifies "200"
- status_tokenizer.GetNext()) // identifies first word of status text
- *status_text = webkit_glue::StdStringToString(
- std::string(status_tokenizer.token_begin(), status.end()));
+ // Set the status text
+ *status_text = webkit_glue::StdStringToString(headers->GetStatusText());
// Set the content length.
std::string length_val;