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

Unified Diff: net/http/http_response_headers.h

Issue 21158: Fix a logic error in the handling the response to an HTTP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_headers.h
===================================================================
--- net/http/http_response_headers.h (revision 9548)
+++ net/http/http_response_headers.h (working copy)
@@ -201,6 +201,10 @@
// response code is not found in the raw headers.
int response_code() const { return response_code_; }
+ // Sets the HTTP response code to the new code. The original HTTP response
+ // code is still available in the raw and parsed headers.
+ void set_response_code(int new_code) { response_code_ = new_code; }
+
// Returns the raw header string.
const std::string& raw_headers() const { return raw_headers_; }
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698