adamfisk/LittleProxy

MITM proxying to hosts whose names begin with "http" is broken

oxtoacart opened this issue · 3 comments

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.

Ha! Is that what it is. I can't imagine what you had to go through to figure that out.

@robfletcher yeah, you don't want to know ;)

Okay, I fixed the parsing. While I was at it, I added the ability to launch the proxy in MITM mode.