Commit graph

6 commits

Author SHA1 Message Date
Arthur A. Gleckler
9b6099ca87 Support more MIME types for common file types.
In `servlet-respond', the server defaults to Content-Type "text/html;
charset=UTF-8" for extensions that don't appear in
`mime-type-from-extension'.  This meant that CSS files, JavaScript
files, and various types of image files were getting the wrong
Content-Type, which was fine when they were served directly, but
caused clients to close the connection when they were loaded over
HTTP/1.1, which can deliver back-to-back resources on the same
connection.

Sort the types in the `mime-type-from-extension' list now that it is
longer.  It's still not long enough for the order to be material for
performance.
2021-11-18 22:09:47 -08:00
Alex Shinn
7366a13413 adding content-type output for http server files 2020-07-17 14:42:28 +09:00
Alex Shinn
c03ae08bbd various portability improvements 2017-03-26 16:00:31 +09:00
Alex Shinn
f1a2a8a8e0 s/string-cursor-backward/string-cursor-back/g 2016-05-15 20:07:26 +09:00
Alex Shinn
0c80f38a19 making string-cursors a disjoint type 2016-03-29 22:25:09 +09:00
Alex Shinn
2922ed591d Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00