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:
parent
c1a13dea57
commit
ccfc5de212
|
@ -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]");
|
||||
|
|
Loading…
Reference in New Issue