summaryrefslogtreecommitdiffstats
path: root/net/http/http_request_headers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_request_headers.cc')
-rw-r--r--net/http/http_request_headers.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/http/http_request_headers.cc b/net/http/http_request_headers.cc
index 9f2eb90..fc2ebcd 100644
--- a/net/http/http_request_headers.cc
+++ b/net/http/http_request_headers.cc
@@ -160,10 +160,12 @@ std::string HttpRequestHeaders::ToString() const {
std::string output;
for (HeaderVector::const_iterator it = headers_.begin();
it != headers_.end(); ++it) {
- if (!it->value.empty())
- StringAppendF(&output, "%s: %s\r\n", it->key.c_str(), it->value.c_str());
- else
- StringAppendF(&output, "%s:\r\n", it->key.c_str());
+ if (!it->value.empty()) {
+ base::StringAppendF(&output, "%s: %s\r\n",
+ it->key.c_str(), it->value.c_str());
+ } else {
+ base::StringAppendF(&output, "%s:\r\n", it->key.c_str());
+ }
}
output.append("\r\n");
return output;