Add correct quoting to the cookie for a backward compatible behavior and restore a legacy Set-Cookie format in EAP 6/JBossWeb.
EAP 6/JBossWeb conforms to this old cookie specifications (RFC2109 and RFC2965), so it will automatically quotes a cookie value (also path and domain) in Set-Cookie header when the value contains any seprarator characters which should be quoted.
For example, when accessing the following JSP which add a cookie value having one of seprarator characters (whitespace or @) which should be quoted:
EAP 6/JBossWeb responds with the following Set-Cookie format:
but undertow responds with the following Set-Cookie format: