From 586533be2f70b0c2a799d5239112cef2b9af171c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 5 Sep 2013 23:40:48 +0900 Subject: [PATCH] nghttpx: Fix CONNECT fail on SPDY upstream --- src/shrpx_spdy_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);