#3 SSLConnectionHandler adds two blanks before the status 200

open
nobody
None
5
2013-04-05
2013-04-05
David
No

SSLConnectionHandler adds two blanks before the status 200 leads to crashing Chrome for Android and other apps when using the Proxy (because they parse the string " 20" instead of "200". Crashes Android Browser, Android Search Bar, Geizhals.at App and multiple others...

//Two blanks before code 200
request.sock.getOutputStream().write(
(request.protocol + " 200 OK\r\n")
.getBytes());

change to:

// one blank before 200
request.sock.getOutputStream().write(
(request.protocol + " 200 OK\r\n")
.getBytes());

Regards
David

Discussion