webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
3.05k stars 184 forks source link

fix: html error pages displayed as plain text #129

Closed JOTSR closed 1 year ago

JOTSR commented 1 year ago

Issue

Send webui_html_* erros via mg_send_http_* use the wrong mime type (text/plain) and so badly display the error. image

Fix

Civetweb only allow serving error page as text/plain so need I added a new webui internal function to serve text/html error pages. image

AlbertShown commented 1 year ago

Me too. I noticed this issue a while ago but didn't report it! Thank you @JOTSR 👍