Revert 93704 - Remove Content-Length mismatch checks.
Although the transferred bytes are supposed to match the advertised Content-Length, in practice a small but non-trivial number of sites do not obey this behavior.
BUG=52847
TEST=None
Review URL: http://codereview.chromium.org/7482005
[email protected]
Review URL: http://codereview.chromium.org/7461040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93710 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 0378b62..7fe23bf 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -463,11 +463,10 @@
const char test_parameters[] = "CULMS";
const int num_tests = arraysize(test_parameters)- 1; // Skip NULL.
// C & U should be OK.
- // L & M are larger than the data sent, but we still accept it since a number
- // of servers in the wild have invalid Content-Lengths.
+ // L & M are larger than the data sent, and show an error.
// S has too little data, but we seem to accept it.
const bool test_expect_success[num_tests] =
- { true, true, true, true, true };
+ { true, true, false, false, true };
for (int i = 0; i < num_tests ; i++) {
TestDelegate d;