From c93da867e09999e279aaec7cae4cbfcdd403a295 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 15 Dec 2014 23:42:59 +0900 Subject: [PATCH] nghttpx: Fix bug SPDY upstream requires content-length if no FIN in SYN_STREAM --- src/shrpx_spdy_upstream.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index 7757a5b4..fc3ada9c 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -192,12 +192,6 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type, upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR); return; } - // Require content-length if FIN flag is not set. - if (!is_connect && !content_length && - (frame->syn_stream.hd.flags & SPDYLAY_CTRL_FLAG_FIN) == 0) { - upstream->rst_stream(downstream, SPDYLAY_PROTOCOL_ERROR); - return; - } downstream->set_request_method(method); if (is_connect) {