Skip to content

Commit 18c6a54

Browse files
committed
Merge pull request AsyncHttpClient#43 from pkulak/patch-2
This fixes a bug I _just_ introduced with my last pull request.
2 parents 9112398 + ad9d355 commit 18c6a54

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)