diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-15 04:36:51 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-15 04:36:51 +0000 |
commit | 71c64f6be0aa9b79c0243354106a5acb68b505d8 (patch) | |
tree | e10f749f2cd3b6d3b494fa24260e1fbb3d78cb42 /net/url_request/url_request.h | |
parent | 9504f194280791e04b468ecb518e175305757c5f (diff) | |
download | chromium_src-71c64f6be0aa9b79c0243354106a5acb68b505d8.zip chromium_src-71c64f6be0aa9b79c0243354106a5acb68b505d8.tar.gz chromium_src-71c64f6be0aa9b79c0243354106a5acb68b505d8.tar.bz2 |
Don't send Content-Type when redirecting from a POST.
http://code.google.com/p/chromium/issues/detail?id=843
Review URL: http://codereview.chromium.org/10873
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r-- | net/url_request/url_request.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index 1f5a06e..b01aa9c 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -437,6 +437,10 @@ class URLRequest { // been orphaned. void OrphanJob(); + // Discard headers which have meaning in POST (Content-Length, Content-Type, + // Origin). + static std::string StripPostSpecificHeaders(const std::string& headers); + scoped_refptr<URLRequestJob> job_; scoped_refptr<net::UploadData> upload_; GURL url_; |