diff --git a/src/main/java/org/javawebstack/http/router/util/HeaderValue.java b/src/main/java/org/javawebstack/http/router/util/HeaderValue.java index 0e136cf..1dea862 100644 --- a/src/main/java/org/javawebstack/http/router/util/HeaderValue.java +++ b/src/main/java/org/javawebstack/http/router/util/HeaderValue.java @@ -9,10 +9,10 @@ public class HeaderValue { private final Map directives = new HashMap<>(); public HeaderValue(String source) { - String[] spl = source.split("; "); - value = spl[0]; + String[] spl = source.split(";"); + value = spl[0].trim(); for(int i=1; i