Index: net/http/http_request_headers.cc |
diff --git a/net/http/http_request_headers.cc b/net/http/http_request_headers.cc |
index 9f2eb90b4b979b5d2d19bed7f25d1c953179f5c3..fc2ebcd1defbbd75de931abfe890144923e6f40a 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; |