Test that FLAG_FIN is set if the read callback is NULL.

This commit is contained in:
Jim Morrison
2012-02-20 13:12:13 -08:00
parent 2edceb1fb1
commit 6e7025b9f5
6 changed files with 43 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ int spdylay_submit_request(spdylay_session *session, uint8_t pri,
}
spdylay_frame_nv_downcase(nv_copy);
spdylay_frame_nv_sort(nv_copy);
if(data_prd == NULL) {
if(data_prd_copy == NULL) {
flags |= SPDYLAY_FLAG_FIN;
}
spdylay_frame_syn_stream_init(&frame->syn_stream, flags, 0, 0, pri, nv_copy);