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

Issue 12226008: Allow no content-type for POST, PUT and PATCH methods. (Closed)

Created:
7 years, 10 months ago by hidehiko
Modified:
7 years, 10 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, satorux1, kinaba
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow no content-type for POST, PUT and PATCH methods. This CL allows to have no content type for UrlFetcher's POST, PUT and PATCH methods, if the body is empty. At the same time, POST_WITHOUT_BODY is deprecated, as POST should work such a case. The following CL will clean it up, after the code using it is fixed. BUG=148632 TEST=Ran unit_tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181039

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Rebase #

Patch Set 4 : Move the DCHECK to SetUploadData. #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Add DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M net/url_request/url_fetcher.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 5 4 chunks +25 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
hidehiko
Hi Matt, Could you kindly take a look at this CL? The concept of this ...
7 years, 10 months ago (2013-02-05 15:13:52 UTC) #1
mmenke
On 2013/02/05 15:13:52, hidehiko wrote: > Hi Matt, > > Could you kindly take a ...
7 years, 10 months ago (2013-02-05 22:16:42 UTC) #2
hidehiko
Hi Matt, Thank you for your review. I'm asking the Drive team if it is ...
7 years, 10 months ago (2013-02-06 05:34:43 UTC) #3
mmenke
https://codereview.chromium.org/12226008/diff/4002/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/12226008/diff/4002/net/url_request/url_fetcher.h#newcode293 net/url_request/url_fetcher.h:293: base::FilePath* out_response_path) const = 0; While you're here, could ...
7 years, 10 months ago (2013-02-06 16:23:58 UTC) #4
hidehiko
Updated and running try-bot. Could you take another look? https://codereview.chromium.org/12226008/diff/4002/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/12226008/diff/4002/net/url_request/url_fetcher.h#newcode293 net/url_request/url_fetcher.h:293: ...
7 years, 10 months ago (2013-02-06 17:19:49 UTC) #5
mmenke
LGTM, modulo comment. https://codereview.chromium.org/12226008/diff/4003/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/12226008/diff/4003/net/url_request/url_fetcher_core.cc#newcode364 net/url_request/url_fetcher_core.cc:364: !upload_content_)); "DCHECK(!upload_content_type.empty());" here as well
7 years, 10 months ago (2013-02-06 17:27:07 UTC) #6
hidehiko
Thank you for your review. Submitting... https://chromiumcodereview.appspot.com/12226008/diff/4003/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://chromiumcodereview.appspot.com/12226008/diff/4003/net/url_request/url_fetcher_core.cc#newcode364 net/url_request/url_fetcher_core.cc:364: !upload_content_)); On 2013/02/06 ...
7 years, 10 months ago (2013-02-06 17:55:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/12226008/9003
7 years, 10 months ago (2013-02-06 17:56:07 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-02-06 20:14:17 UTC) #9
Message was sent while issue was closed.
Change committed as 181039

Powered by Google App Engine
This is Rietveld 408576698