kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c0c3e9fb05a9baf048c9677db217c1e6adc9e490
parent eef40bf2dd6d6bff654f16336e602231da660b8a
Author: Joris Vink <joris@coders.se>
Date:   Fri, 19 Sep 2014 15:01:25 +0200

Use s instead of req->stream.

Diffstat:
src/http.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1154,14 +1154,14 @@ http_response_spdy(struct http_request *req, struct connection *c, kore_mem_free(htext); if (len > 0) { - req->stream->send_size += len; - req->stream->flags |= SPDY_DATAFRAME_PRELUDE; + s->send_size += len; + s->flags |= SPDY_DATAFRAME_PRELUDE; if (d != NULL) net_send_queue(c, d, len, s, NETBUF_LAST_CHAIN); } else { spdy_frame_send(c, SPDY_DATA_FRAME, FLAG_FIN, 0, s, 0); - spdy_stream_close(c, req->stream, SPDY_KEEP_NETBUFS); + spdy_stream_close(c, s, SPDY_KEEP_NETBUFS); } }