diff options
| author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-13 00:45:27 +0000 |
|---|---|---|
| committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-13 00:45:27 +0000 |
| commit | 231d5a36e476d013a91ca742bb8a0a2973cfee54 (patch) | |
| tree | dc5c60f8fc054503f4971b770196ed89fbfc18c1 /webkit | |
| parent | f4f2df8024d7adf583a61b742a32eaa17522f154 (diff) | |
| download | chromium_src-231d5a36e476d013a91ca742bb8a0a2973cfee54.zip chromium_src-231d5a36e476d013a91ca742bb8a0a2973cfee54.tar.gz chromium_src-231d5a36e476d013a91ca742bb8a0a2973cfee54.tar.bz2 | |
misc. http response status-line changes:
1. check for http 0.9 responses (no status line)
2. allow up to 4 bytes of junk to precede the http version.
3. distinguish between the parsed vs normalized http version (a TODO needed this).
Review URL: http://codereview.chromium.org/1934
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
| -rw-r--r-- | webkit/glue/resource_handle_win.cc | 10 |
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; |
