mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00

The `wsp.server` logic was never making it to the /gun.js route. If the browser is just sending a GET request for a the js file, it won't set the upgrade property, and the server logic wouldn't let the request pass if it didn't have that header. I've simply moved the check below the file serving logic.