vscode-live-server
vscode-live-server copied to clipboard
Fix mime type issue
This pr is a second option to https://github.com/ritwickdey/vscode-live-server/pull/619
Rather then having a list of constants maps extension => mime type, this pr uses the mime package to retrieve the correct mime type. this addresses #202
i did attempt to use the exported mime property of send but that did seam dead lock the process.
Further i think its better to have a full set of mime types rather then relying on a hard coded list
@ritwickdey This seems like the best solution to couple of Content-Type mismatch issues. Could you please merge it?