Multipart is parsing field name now

This commit is contained in:
Ziver Koc 2016-07-07 15:59:25 +02:00
parent 1cd48ac2ff
commit 53dec4603c
3 changed files with 13 additions and 6 deletions

View file

@ -24,6 +24,7 @@
package zutil.net.http;
import zutil.StringUtil;
import zutil.parser.URLDecoder;
import java.io.BufferedReader;
@ -154,7 +155,7 @@ public class HttpHeaderParser {
String[] tmp2 = PATTERN_EQUAL.split(cookie, 2);
map.put(
tmp2[0].trim(), // Key
(tmp2.length>1 ? tmp2[1] : "").trim()); //Value
StringUtil.trim((tmp2.length>1 ? tmp2[1] : "").trim(), '\"')); //Value
}
}
}