We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac3941 commit c71e052Copy full SHA for c71e052
api/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java
@@ -578,12 +578,12 @@ public static int convertExpireField(String timestring) throws Exception {
578
}
579
580
private final static String removeQuote(String s) {
581
- if (s.startsWith("\"")) {
582
- s = s.substring(1);
583
- }
+ if (MiscUtil.isNonEmpty(s)) {
+ if (s.charAt(0) == '"')
+ s = s.substring(1);
584
585
- if (s.endsWith("\"")) {
586
- s = s.substring(0, s.length() - 1);
+ if (s.charAt(s.length() - 1) == '"')
+ s = s.substring(0, s.length() - 1);
587
588
return s;
589
0 commit comments