SSLConnectionHandler adds two blanks before the status 200
Brought to you by:
luelljoc
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