MITM proxying to hosts whose names begin with "http" is broken
oxtoacart opened this issue · 3 comments
oxtoacart commented
This was discovered by @robfletcher who tried using MITM to proxy requests to https://httpbin.org/get.
This was getting parsed into the empty string "", causing us to fall back on the host header to identify the host. Unfortunately, at that point, we have lost the port information and consequently end up defaulting to port 80, which won't work for this SSL connection.
robfletcher commented
Ha! Is that what it is. I can't imagine what you had to go through to figure that out.
oxtoacart commented
@robfletcher yeah, you don't want to know ;)
oxtoacart commented
Okay, I fixed the parsing. While I was at it, I added the ability to launch the proxy in MITM mode.