summaryrefslogtreecommitdiffstats
path: root/net/flip/flip_session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/flip/flip_session.cc')
-rw-r--r--net/flip/flip_session.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/flip/flip_session.cc b/net/flip/flip_session.cc
index b0f80524..7305103 100644
--- a/net/flip/flip_session.cc
+++ b/net/flip/flip_session.cc
@@ -270,10 +270,13 @@ int FlipSession::CreateStream(FlipDelegate* delegate) {
flip::FlipHeaderBlock headers;
CreateFlipHeadersFromHttpRequest(delegate->request(), &headers);
+ flip::FlipControlFlags flags = flip::CONTROL_FLAG_NONE;
+ if (!delegate->request()->upload_data)
+ flags = flip::CONTROL_FLAG_FIN;
+
// Create a SYN_STREAM packet and add to the output queue.
flip::FlipSynStreamControlFrame* syn_frame =
- flip_framer_.CreateSynStream(stream_id, priority,
- flip::CONTROL_FLAG_NONE, false, &headers);
+ flip_framer_.CreateSynStream(stream_id, priority, flags, false, &headers);
int length = sizeof(flip::FlipFrame) + syn_frame->length();
IOBufferWithSize* buffer =
new IOBufferWithSize(length);