http-party / http-server

a simple zero-configuration command-line http server
MIT License
13.42k stars 1.48k forks source link

Fails to serve Unity/Brotli #844

Open dakom opened 1 year ago

dakom commented 1 year ago

Exporting a WebGL build from unity and then running http-server -o --cors --brotli

I see Serve Brotli Files is true, but I get an error where files like Build/world.framework.js.br are not being served with Content-Encoding: br in the response header.

Ultimately this means Unity WebGL builds are not viewable with http-server

Environment Versions

  1. OS Type: OSX
  2. Node version: v16.13.1
  3. http-server version: v14.1.1
BaguetteEater commented 1 year ago

I'm having the same issue here on windows and trying to serve unity webgl files.

I tried to find a correct mimetype to put in with the option --mimetype but I have been unsuccesful so far. But I think the way to make it work is this option to force the type on the brotli file.

github-actions[bot] commented 11 months ago

This issue has been inactive for 180 days

cosmoburn commented 1 month ago

yup, doesn't work for me either, says the flag is set to true but does not actually serve the files with 'Content-Encoding', 'br'