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 d3f84db4b88d9ccbb8cb1b4403aabb526b1256b7
parent 7fb47da5866dea3cbfe206343f7c4c49cc29b2a8
Author: Joris Vink <joris@coders.se>
Date:   Wed,  1 Feb 2017 21:36:53 +0100

small fixes.

Diffstat:
examples/python/src/upload.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/python/src/upload.py b/examples/python/src/upload.py @@ -16,7 +16,6 @@ # Processing incoming files in a multipart form. -import sys import kore # @@ -55,5 +54,7 @@ def upload(req): kore.log(kore.LOG_INFO, "got %d bytes of data" % len) f.write(bytes) + f.close() req.response(200, b'') + return kore.RESULT_OK