commit 1dd7407a41ae3cd05f735c744724d9978fd53a21
parent cefeaf7992ea0bfa1cb525c921b1645e1864913f
Author: Joris Vink <joris@coders.se>
Date: Fri, 15 May 2015 19:16:35 +0200
Close SPDY streams if len == 0 and SPDY_NO_CLOSE is not set.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/http.c b/src/http.c
@@ -1211,7 +1211,8 @@ http_response_spdy(struct http_request *req, struct connection *c,
net_send_queue(c, d, len, s, NETBUF_LAST_CHAIN);
}
- if (req->method == HTTP_METHOD_HEAD) {
+ if (req->method == HTTP_METHOD_HEAD ||
+ (len == 0 && !(s->flags & SPDY_NO_CLOSE))) {
spdy_frame_send(c, SPDY_DATA_FRAME, FLAG_FIN, 0, s, 0);
spdy_stream_close(c, s, SPDY_KEEP_NETBUFS);
}