Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Issue 10873: Don't send Content-Type when redirecting from a POST.... (Closed)

Created:
12 years, 1 month ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -4 lines) Patch
A net/data/url_request_unittest/redirect-to-echoall View 0 chunks +-1 lines, --1 lines 0 comments Download
A net/data/url_request_unittest/redirect-to-echoall.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 3 4 5 2 chunks +8 lines, -5 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 3 chunks +45 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 3 4 5 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
eroman
12 years, 1 month ago (2008-11-13 04:18:12 UTC) #1
darin (slow to review)
Do you think WebKit would take this regression test? Maybe we should still have a ...
12 years, 1 month ago (2008-11-13 05:58:51 UTC) #2
eroman
> Maybe we should still have a unit test? I will ping back once this ...
12 years, 1 month ago (2008-11-13 18:24:16 UTC) #3
wtc
LGTM. http://codereview.chromium.org/10873/diff/8/12 File net/url_request/url_request.cc (right): http://codereview.chromium.org/10873/diff/8/12#newcode302 Line 302: static const char * const kPostHeaders[] = ...
12 years, 1 month ago (2008-11-13 19:11:11 UTC) #4
eroman
I got rid of the layout-test, and made it into a unit-test (small accompanying modifications ...
12 years, 1 month ago (2008-11-13 21:27:01 UTC) #5
wtc
LGTM. http://codereview.chromium.org/10873/diff/23/29 File net/url_request/url_request_unittest.cc (right): http://codereview.chromium.org/10873/diff/23/29#newcode62 Line 62: bool ContainsString(const std::string haystack, const char* needle) ...
12 years, 1 month ago (2008-11-15 00:00:05 UTC) #6
eroman
12 years, 1 month ago (2008-11-15 00:16:22 UTC) #7
http://codereview.chromium.org/10873/diff/23/29
File net/url_request/url_request_unittest.cc (right):

http://codereview.chromium.org/10873/diff/23/29#newcode62
Line 62: bool ContainsString(const std::string haystack, const char* needle) {
On 2008/11/15 00:00:06, wtc wrote:
> Nit: 'haystack' should be a reference: const std::string&.

Fixed.

http://codereview.chromium.org/10873/diff/23/29#newcode797
Line 797: "Content-Length: 10\r\n"
On 2008/11/15 00:00:06, wtc wrote:
> Nit: Is 10 the actual content length or just some number you
> made up?  It seems that just the multipart boundary string
> is longer than 10.

"10" is just some junk value I added, to make sure it doesn't show up in the
request. There is logic in the upload code to replace Content-Length with
correct value; I want to make sure it doesn't slip through the cracks when set
as an "extra request header".

Powered by Google App Engine
This is Rietveld 408576698