Fixed bug causing empty input lines to be omitted from the wire log

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@764915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2009-04-14 18:27:04 +00:00
parent c1a13dea57
commit ccfc5de212
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class LoggingSessionInputBuffer implements SessionInputBuffer {
public int readLine(final CharArrayBuffer buffer) throws IOException {
int l = this.in.readLine(buffer);
if (this.wire.enabled() && l > 0) {
if (this.wire.enabled() && l >= 0) {
int pos = buffer.length() - l;
String s = new String(buffer.buffer(), pos, l);
this.wire.input(s + "[EOL]");