`shareFilesFromDirectory` HTTP response does not include relevant HTTP headers
The HTTP response from a route that is served via the shareFilesFromDirectory function looks like so:
HTTP/1.1 200 OK
Server: Swifter [version]
[response-content-goes-here]
At a minimum there should be a Content-Type, Content-Length, Last-Modified, Date, and probably a Connection: close header included.
+1 for this. What did you end up doing @davidfmiller ?
I hacked together a solution. I can put it into a PR if there's a chance it would go anywhere.
shareFilesFromDirectory returns the "Content-Type": mimeType when the fileRelativePath exist. otherwise, the Headers are empty for a 200. I think it's worth it to have more information about the file, could you create a PR with your proposal ?