kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit e33710b26aa885ca0a02e63ef45231551f1cdac1
parent 242340b045e15499566c171a6fc9a4f7dc861b54
Author: Joris Vink <joris@coders.se>
Date:   Tue, 19 May 2015 09:04:46 +0200

Wrap expression with some additional parenthesis.

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -1211,7 +1211,7 @@ http_response_spdy(struct http_request *req, struct connection *c, net_send_queue(c, d, len, s, NETBUF_LAST_CHAIN); } - if (req != NULL && req->method == HTTP_METHOD_HEAD || + if ((req != NULL && 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);