gnomemade_16346
Mar 17, 2015Nimbostratus
Adding spaces between semicolon seperated cookie elements
I'm using the following irule to add secure/httpOnly attributes to cookies:
when HTTP_RESPONSE {
foreach aCookie [HTTP::cookie names] {
set ck_value [HTTP::cookie value $aCookie]
set ck_path [HTTP::cookie path $aCookie]
HTTP::cookie remove $aCookie
HTTP::cookie insert name $aCookie value $ck_value path $ck_path version 1
HTTP::cookie httponly $aCookie enable
HTTP::cookie secure $aCookie enable
}
}
It's doing what I want but the resulting cookie looks like this with no spaces after the semicolons:
Set-Cookie:.ASPXAUTH=xxxxxxxxxxxxxxxxxxx;Secure;HttpOnly;Path=/;Version=1;
Everything is working as it should but not having a space after the semicolons makes it a little harder to read and I can't seem to find any info if no spaces is acceptable from a standards perspective.
Can anyone tell me if having no spaces is ok from a standards / compatibility standpoint and if there is an easy way to add a space after each semicolon?