Skip to content

Commit d8b9df2

Browse files
committed
Trim both name and value
1 parent 886ab52 commit d8b9df2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snunit-undertow/src/io/undertow/server/HttpServerExchange.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ final class HttpServerExchange private[undertow] (private[undertow] val req: Req
3333
cookieString.split(';').foreach {
3434
case s"$n=$v" =>
3535
val name = n.trim()
36-
val cookie = CookieImpl(name, v)
36+
val value = v.trim()
37+
val cookie = CookieImpl(name, value)
3738
result.put(name, cookie)
3839
case _ =>
3940
}

0 commit comments

Comments
 (0)