richardg867 / WaybackProxy

HTTP proxy for tunneling requests through the Internet Archive Wayback Machine
GNU General Public License v3.0
646 stars 55 forks source link

It is missing one space before the "200 OK" and that breaks the HTTP response. #6

Closed chris-l closed 2 years ago

chris-l commented 2 years ago

I was trying to use WaybackProxy with IE4, but got an error about unknown http response. So, I tried to use curl and got this:

* Unsupported response code in HTTP response
* Closing connection 0
curl: (1) Unsupported response code in HTTP response

Using netcat, I found that it was answering HTTP/1.1200 OK, instead of HTTP/1.1 200 OK (that is, it was missing an space before the 200). After adding the space, in waybackproxy.py#L415, it works fine.

I created pull request #5

richardg867 commented 2 years ago

Fixed by 5c57105