From aad601d575d01882439a1fb53060b5a6ec813a26 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 6 Apr 2022 14:09:20 +0200 Subject: [PATCH] Support arguments --- cmd/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/main.c b/cmd/main.c index 13c27f4..d830444 100644 --- a/cmd/main.c +++ b/cmd/main.c @@ -12,12 +12,19 @@ http_method_t http_methods[] = { { "GET / ", http_index }, { "GET /snapshot ", http_snapshot }, + { "GET /snapshot?", http_snapshot }, { "GET /stream ", http_stream }, + { "GET /stream?", http_stream }, { "GET /?action=snapshot ", http_snapshot }, + { "GET /?action=snapshot?", http_snapshot }, { "GET /?action=stream ", http_stream }, + { "GET /?action=stream?", http_stream }, { "GET /video ", http_video_html }, + { "GET /video?", http_video_html }, { "GET /video.h264 ", http_video }, + { "GET /video.h264?", http_video }, { "GET /jmuxer.min.js ", http_jmuxer_js }, + { "GET /jmuxer.min.js?", http_jmuxer_js }, { NULL, NULL } };