isomorphic-git / cors-proxy

Proxy clone and push requests for the browser
MIT License
87 stars 34 forks source link

Do not crash with `getaddrinfo ENOTFOUND` #14

Closed tiagobento closed 1 year ago

tiagobento commented 1 year ago

If the Git URL is invalid, like https://g, the CORS Proxy currently crashes. This PR fixes it, and returns a 403 instead.

tiagobento commented 1 year ago

@jcubic ^

jcubic commented 1 year ago

Thanks for the fix. I'm not sure if it will be deployed automatically if not we will need to figure out how to update the proxy by hand. I'm not sure if people are using our hosted version.