Closed HHHartmann closed 7 years ago
For starting: List of MIME types
You can't change "text/html" to just "html" and "application/json" to "json".
Thanks for reviewing the changes. httpserver-header.lc has to be called with the file extension as 3rd parameter and then changes it to the corrosponding MIME type. So "json" becomes "application/json" and "html" becomes "text/html". Calling it with "application/json" would result in the fallback MIME type "text/plain".
So I will close this PR and create separate ones
You can define static files as errorhandlers based on errorcode and file extension.
The last commits add support for six cars (or more) without crash. I serve static files without coroutine now. Very memory effichient!
Tested all sample pages successfully.
Also fix and improve many small details: