From 519c224dd28b25387fedce4c8d58f70dfc23e46b Mon Sep 17 00:00:00 2001 From: logicog Date: Mon, 15 Dec 2025 20:03:45 +0100 Subject: [PATCH] Use charset=UTF-8 in http header This allows us to use the degree sign for the temperatur readings of the SFP modules. --- httpd/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd/httpd.c b/httpd/httpd.c index 8f6c923..fa9b4cb 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -593,7 +593,7 @@ void httpd_appcall(void) slen = strtox(outbuf, "HTTP/1.1 200 OK\r\nContent-Type: "); slen += strtox(outbuf + slen, mime_strings[f_data[entry].mime]); - slen += strtox(outbuf + slen, "\r\nCache-Control: max-age=60, must-revalidate\r\n\r\n"); + slen += strtox(outbuf + slen, "; charset=UTF-8\r\nCache-Control: max-age=60, must-revalidate\r\n\r\n"); len_left = f_data[entry].len; if (len_left > (TCP_OUTBUF_SIZE - slen)) { cont_len = len_left - (TCP_OUTBUF_SIZE - slen);