tor2web/Tor2web

Produces invalid HTTP version.

cheako opened this issue · 2 comments

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.

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";

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