diff options
Diffstat (limited to 'net/spdy/spdy_session.cc')
-rw-r--r-- | net/spdy/spdy_session.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 6f7d9ca..6c154e7 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -62,19 +62,10 @@ base::Value* NetLogSpdySynCallback(const SpdyHeaderBlock* headers, base::ListValue* headers_list = new base::ListValue(); for (SpdyHeaderBlock::const_iterator it = headers->begin(); it != headers->end(); ++it) { -#if defined(OS_ANDROID) - if (it->first == "proxy-authorization") { - headers_list->Append(new base::StringValue(base::StringPrintf( - "%s: %s", it->first.c_str(), "[elided]"))); - } else { - headers_list->Append(new base::StringValue(base::StringPrintf( - "%s: %s", it->first.c_str(), it->second.c_str()))); - } -#else headers_list->Append(new base::StringValue(base::StringPrintf( - "%s: %s", it->first.c_str(), it->second.c_str()))); -#endif - + "%s: %s", it->first.c_str(), + (ShouldShowHttpHeaderValue( + it->first) ? it->second : "[elided]").c_str()))); } dict->SetBoolean("fin", fin); dict->SetBoolean("unidirectional", unidirectional); |