if (in == -1)
break;
currChar = (char) in;
if (currChar == '\r') {
if (request.length() > 0 && !endOfHeaders) {
<BUG>String line = request.toString();

if (line.startsWith(OHttpUtils.AUTHORIZATION)) {

String auth = line.substring(OHttpUtils.AUTHORIZATION.length() + 2);
</BUG>
if (!auth.startsWith(OHttpUtils.AUTHORIZATION_BASIC))

if (in == -1)
break;
currChar = (char) in;
if (currChar == '\r') {
if (request.length() > 0 && !endOfHeaders) {
final String line = request.toString();
if (line.startsWith(OHttpUtils.HEADER_AUTHORIZATION)) {
final String auth = line.substring(OHttpUtils.HEADER_AUTHORIZATION.length());
if (!auth.startsWith(OHttpUtils.AUTHORIZATION_BASIC))
