mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-01 12:30:01 -05:00
Do not crash on invalid HTTP CONNECT (#4916)
* Do not crash on invalid HTTP CONNECT * fix test
This commit is contained in:
committed by
Brian Mann
parent
7e2ca836cf
commit
52beabeda5
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user