Commit 586533be authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix CONNECT fail on SPDY upstream

parent a3762b5b
......@@ -185,7 +185,7 @@ void on_ctrl_recv_callback
return;
}
// 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 &&
!content_length) {
upstream->rst_stream(downstream, SPDYLAY_PROTOCOL_ERROR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment