nghttpx: Fix bug SPDY upstream requires content-length if no FIN in SYN_STREAM

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-15 23:42:59 +09:00
parent 556811ec64
commit c93da867e0
1 changed files with 0 additions and 6 deletions

View File

@ -192,12 +192,6 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR);
return;
}
// Require content-length if FIN flag is not set.
if (!is_connect && !content_length &&
(frame->syn_stream.hd.flags & SPDYLAY_CTRL_FLAG_FIN) == 0) {
upstream->rst_stream(downstream, SPDYLAY_PROTOCOL_ERROR);
return;
}
downstream->set_request_method(method);
if (is_connect) {