Closed pkkm closed 9 years ago
Thanks! I believe this solves #18 over in @netguy204's repository. I couldn't figure out in which situations the MIME type was wrong. I rebased your patch as 5f6205f.
Note that his repo is the canonical one, so you won't see the change reflected in MELPA until he gets this patch. I'll forward it on to him.
Thanks!
When another file (e.g. a CSS stylesheet) is referenced from an HTML file,
impatient-mode
serves it with a hardcodedContent-Type: text/plain
. This causes problems in browsers; for example, Firefox ignores CSS files that aren't sent astext/css
.This commit makes
impatient-mode
determine the MIME type to send based on the extension of the requested file.