diff --git a/html/index.html b/html/index.html index bd5f99a..5dffc4e 100644 --- a/html/index.html +++ b/html/index.html @@ -17,7 +17,7 @@
  • /stream
    - Get a live stream. Query params:
    + Get a live stream.

  • @@ -29,7 +29,19 @@
  • /?action=stream as alias to the /stream.
  • +
    +
  • + /video
    + Get a live video (H264) stream.
    +
    + +
  • +

    diff --git a/http/http_methods.c b/http/http_methods.c index 315d2cf..a3d037f 100644 --- a/http/http_methods.c +++ b/http/http_methods.c @@ -26,6 +26,10 @@ static void http_write_response( void http_content(http_worker_t *worker, FILE *stream) { if (worker->current_method) { + if (worker->current_method->content_lengthp) { + worker->current_method->content_length = *worker->current_method->content_lengthp; + } + http_write_response(stream, NULL, worker->current_method->content_type,