nghttpx: Fix CONNECT fail on SPDY upstream

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-05 23:40:48 +09:00
parent a3762b5b1f
commit 586533be2f
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ void on_ctrl_recv_callback
return; return;
} }
// Require content-length if FIN flag is not set. // Require content-length if FIN flag is not set.
if(strcmp("CONNECT", method) == 0 && if(strcmp("CONNECT", method) != 0 &&
(frame->syn_stream.hd.flags & SPDYLAY_CTRL_FLAG_FIN) == 0 && (frame->syn_stream.hd.flags & SPDYLAY_CTRL_FLAG_FIN) == 0 &&
!content_length) { !content_length) {
upstream->rst_stream(downstream, SPDYLAY_PROTOCOL_ERROR); upstream->rst_stream(downstream, SPDYLAY_PROTOCOL_ERROR);