nghttpx: Fix CONNECT fail on SPDY upstream
This commit is contained in:
parent
a3762b5b1f
commit
586533be2f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue