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 0b92afe53d030f1f1c33ad092f3f0d1d6f4a7455
parent 46cee2ff4697c9d02f74939ce550500d9e3334be
Author: Joris Vink <joris@coders.se>
Date:   Wed, 27 Jul 2016 16:40:41 +0200

Explicitly set offset to 0 for http_file.

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

diff --git a/src/http.c b/src/http.c @@ -1274,6 +1274,7 @@ multipart_file_add(struct http_request *req, struct kore_buf *in, f = kore_malloc(sizeof(struct http_file)); f->req = req; + f->offset = 0; f->length = len; f->position = position; f->name = kore_strdup(name);