Skip to content

Commit 57f6e80

Browse files
committed
Fix convertion problem with bytes in an unsigned byte. Patch provided by Laurent Querel
1 parent 1229c6f commit 57f6e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/jdk/JDKResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public int read() throws IOException {
155155
active = parts[currentPos].getBodyPartBytes();
156156
}
157157

158-
return active[bytePos];
158+
return active[bytePos] & 0xFF;
159159
}
160160
}
161161

0 commit comments

Comments
 (0)