Remove redundant toString() call

Closes gh-4706
This commit is contained in:
mnhock 2015-12-08 18:20:53 +01:00 committed by Phillip Webb
parent 7f8aff0231
commit ea016f5442
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class ConnectionInputStream extends FilterInputStream {
int amountRead = checkedRead(buffer, 0, BUFFER_SIZE);
content.append(new String(buffer, 0, amountRead));
}
return content.substring(0, content.indexOf(HEADER_END)).toString();
return content.substring(0, content.indexOf(HEADER_END));
}
/**