fix bug.
This commit is contained in:
@@ -24,9 +24,8 @@ public class Parser {
|
||||
String key;
|
||||
String value;
|
||||
for (String head : header) {
|
||||
String[] strings = head.split(":", 2);
|
||||
key = strings[0].trim();
|
||||
value = strings[1].trim();
|
||||
key = head.substring(0, head.indexOf(":") - 1).trim();
|
||||
value = head.substring(head.indexOf(":") - 1).trim();
|
||||
map.put(key, value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user