You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That should set up a basic usable webserver for static files like, say, the ones generated by the Hugo project right? Wrong.
Js files - served as text/plain. CSS files - text/plain. HTML file, you guessed it, text/plain. While you can configure a browser to ignore this, it throws a wrench into testing.
This is a bug because it renders this library call unusable as far as I can tell.
Every similar library in ever other language I've used infers the content type from the extension by default.
The text was updated successfully, but these errors were encountered:
Given:
That should set up a basic usable webserver for static files like, say, the ones generated by the Hugo project right? Wrong.
Js files - served as text/plain. CSS files - text/plain. HTML file, you guessed it, text/plain. While you can configure a browser to ignore this, it throws a wrench into testing.
This is a bug because it renders this library call unusable as far as I can tell.
Every similar library in ever other language I've used infers the content type from the extension by default.
The text was updated successfully, but these errors were encountered: