From 4b2f51ba2e248b33c48a073c2842ad1c94e28aa4 Mon Sep 17 00:00:00 2001 From: MK3S+ Printer Date: Sat, 29 Oct 2022 10:00:09 +0200 Subject: [PATCH] Fix /option support --- util/http/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/http/http.c b/util/http/http.c index e85f2a1..9a7bddb 100644 --- a/util/http/http.c +++ b/util/http/http.c @@ -57,7 +57,7 @@ error: void *http_enum_params(http_worker_t *worker, FILE *stream, http_param_fn fn, void *opaque) { const char *params = worker->request_params; - if (!params) { + if (!params || !params[0]) { return NULL; }