Skip to content

Commit 9dafda3

Browse files
committed
don't fail on old/bad cookie header fix #375
1 parent a9cbce6 commit 9dafda3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.jooby.issues;
2+
3+
import org.jooby.test.ServerFeature;
4+
import org.junit.Test;
5+
6+
public class Issue375 extends ServerFeature {
7+
8+
{
9+
get("/375", req -> req.cookie("X").value());
10+
}
11+
12+
@Test
13+
public void shouldHandleOldCookieHeader() throws Exception {
14+
request()
15+
.get("/375")
16+
.header("Cookie", "X=x; $Version=1; $Path=/")
17+
.expect("x");
18+
}
19+
20+
}

0 commit comments

Comments
 (0)