tor2web / Tor2web

Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
https://www.tor2web.org
GNU Affero General Public License v3.0
700 stars 177 forks source link

Produces invalid HTTP version. #345

Closed cheako closed 6 years ago

cheako commented 6 years ago

https://travis-ci.org/globaleaks/Tor2web/builds/285838413#L1652

s%HTTP/.0%HTTP/1.0%

I'll do some double-checking but I think it's safe to claim this is the first bug revealed by the test suite.

cheako commented 6 years ago

https://travis-ci.org/cheako/Tor2web-1/builds/285870803#L1648

This shows the problem without the concatenation the previous version implemented. I'm unable to get any 'closer' because of SSL. $sock->read( $b, 1 ); diag "Location $b";

cheako commented 6 years ago

Nevermind, well it's still wrong that it takes HTTP/.0 and returns HTTP/.0... But it's more of a feature. I'll test if it will claim to be HTTP/2 or even HTTP/3.5, that would be a problem because it could be likely to start seeing HTTP/2.

https://en.wikipedia.org/wiki/HTTP/2