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 b1797231cc0848cf3ee315ab15c432b0f1075d8c
parent 27b4447a302c6d9a254199b09019a95bb16de7dd
Author: Joris Vink <joris@coders.se>
Date:   Fri, 31 Oct 2014 10:13:45 +0100

Properly error out in HTML5 video streaming.

Diffstat:
examples/video_stream/src/stream.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/examples/video_stream/src/stream.c b/examples/video_stream/src/stream.c @@ -173,8 +173,10 @@ video_open(struct http_request *req, struct video **out) struct video *v; char fpath[MAXPATHLEN]; - if (!kore_snprintf(fpath, sizeof(fpath), NULL, "videos%s", req->path)) + if (!kore_snprintf(fpath, sizeof(fpath), NULL, "videos%s", req->path)) { + http_response(req, 500, NULL, 0); return (KORE_RESULT_ERROR); + } TAILQ_FOREACH(v, &videos, list) { if (!strcmp(v->path, fpath)) {