We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 402aff7 commit ba03cdeCopy full SHA for ba03cde
src/main/java/org/javawebstack/http/router/util/HeaderValue.java
@@ -9,10 +9,10 @@ public class HeaderValue {
9
private final Map<String, String> directives = new HashMap<>();
10
11
public HeaderValue(String source) {
12
- String[] spl = source.split("; ");
13
- value = spl[0];
+ String[] spl = source.split(";");
+ value = spl[0].trim();
14
for(int i=1; i<spl.length; i++) {
15
- String[] spl2 = spl[i].split("=", 2);
+ String[] spl2 = spl[i].trim().split("=", 2);
16
String value = spl2.length == 2 ? spl2[1] : "";
17
if(value.startsWith("\"") && value.endsWith("\"")) {
18
value = value.substring(1, value.length()-1);
0 commit comments