TerriaJS / terriajs-server

NodeJS server for TerriaJS, consisting of a CORS proxy, proj4 CRS lookup service, ogr2ogr conversion service, and express static server.
Other
49 stars 40 forks source link

Fix server crash when remote host returns a redirect url with no hostname #136

Closed na9da closed 3 years ago

na9da commented 3 years ago

This PR fixes a bug where the server throws an error if the remote host returns a 30x response with a location header containing a relative URL with no hostname. In that case we default to the remoteUrl host.