From 45724981adfc8535d5e4ddfd8ed4ba5715e31e7d Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 8 Apr 2022 14:24:51 +0200 Subject: [PATCH] Fix HTML --- html/index.html | 14 +++++++++++++- http/http_methods.c | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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,