Do not crash on invalid HTTP CONNECT (#4916)

* Do not crash on invalid HTTP CONNECT

* fix test
This commit is contained in:
Zach Bloomquist
2019-08-02 18:33:38 -04:00
committed by Brian Mann
parent 7e2ca836cf
commit 52beabeda5
2 changed files with 33 additions and 8 deletions
+2
View File
@@ -139,6 +139,8 @@ class Server
browserSocket.resume()
port or= "443"
if upstreamProxy = @_getProxyForUrl("https://#{hostname}:#{port}")
# todo: as soon as all requests are intercepted, this can go away since this is just for pass-through
debug("making proxied connection %o", {