pandeiro / boot-http

A simple HTTP serve task for the Boot build tool
62 stars 34 forks source link

wrap-index serves a file instead of slurping it #60

Open scizo opened 7 years ago

scizo commented 7 years ago

This preserves the encoding in the Content-Type header.

With slurp, it seems that jetty is appending charset=ISO-8859-1 to the Content-Type header. If io/file is used, then it correctly recognizes the contents as utf-8.