diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index 403140c3..ec10fab0 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -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);