Index: net/spdy/spdy_framer.cc |
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc |
index e7603ff7bd445d6ee723db28f17a0ee7badba672..ec21aa5770be3717e202410e7acc5442021e72cf 100644 |
--- a/net/spdy/spdy_framer.cc |
+++ b/net/spdy/spdy_framer.cc |
@@ -1197,8 +1197,8 @@ void SpdyFramer::WriteHeaderBlock(SpdyFrameBuilder* frame, |
SpdyHeaderBlock::const_iterator it; |
for (it = headers->begin(); it != headers->end(); ++it) { |
if (spdy_version < SPDY3) { |
- frame->WriteString(it->first); |
- frame->WriteString(it->second); |
+ frame->WriteStringPiece16(it->first); |
+ frame->WriteStringPiece16(it->second); |
} else { |
frame->WriteStringPiece32(it->first); |
frame->WriteStringPiece32(it->second); |
@@ -3214,8 +3214,8 @@ void SpdyFramer::SerializeNameValueBlockWithoutCompression( |
it != name_value_block.end(); |
++it) { |
if (protocol_version() <= SPDY2) { |
- builder->WriteString(it->first); |
- builder->WriteString(it->second); |
+ builder->WriteStringPiece16(it->first); |
+ builder->WriteStringPiece16(it->second); |
} else { |
builder->WriteStringPiece32(it->first); |
builder->WriteStringPiece32(it->second); |