summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 02:02:47 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 02:02:47 +0000
commitaecfbf25fe132328429d2ec8570d2327c060e042 (patch)
treeff3758b7473240809833d5f686911eb442d7a7fe /net/http/http_network_transaction.h
parentd5bd66aa1267692edbd6f911e20b42e12f69ed40 (diff)
downloadchromium_src-aecfbf25fe132328429d2ec8570d2327c060e042.zip
chromium_src-aecfbf25fe132328429d2ec8570d2327c060e042.tar.gz
chromium_src-aecfbf25fe132328429d2ec8570d2327c060e042.tar.bz2
Make zero-byte responses an error, rather than an empty HTTP/0.9 case.
Review URL: http://codereview.chromium.org/7381 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r--net/http/http_network_transaction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h
index 475056e..c686cd6 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -108,6 +108,10 @@ class HttpNetworkTransaction : public HttpTransaction {
// code is simply returned.
int ReconsiderProxyAfterError(int error);
+ // Decides the policy when the connection is closed before the end of headers
+ // has been reached.
+ int HandleSocketClosedBeforeReadingEndOfHeaders();
+
// Return true if based on the bytes read so far, the start of the
// status line is known. This is used to distingish between HTTP/0.9
// responses (which have no status line) and HTTP/1.x responses.