Skip to content

Commit ad9d355

Browse files
committed
This fixes a bug I _just_ introduced with my last pull request.
1 parent 9112398 commit ad9d355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public static String parseCharset(String contentType) {
432432
for (String part : contentType.split(";")) {
433433
if (part.trim().startsWith("charset=")) {
434434
String[] val = part.split("=");
435-
if (val[1].length > 1) {
435+
if (val.length > 1) {
436436
return val[1].trim();
437437
}
438438
}

0 commit comments

Comments
 (0)