Browse Source

Fix set-cookie empty domain attribute parsing

We must not remove all domain attributes when we find an
empty domain attribute, we must only ignore this one particular
cookie-av. (RFC6265bis 5.3.3)
Loïc Hoguin 4 years ago
parent
commit
fce844e2d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cow_cookie.erl

+ 1 - 1
src/cow_cookie.erl

@@ -232,7 +232,7 @@ parse_set_cookie_attr(<<"max-age">>, Value) ->
 parse_set_cookie_attr(<<"domain">>, Value) ->
 	case Value of
 		<<>> ->
-			{ignore, domain};
+			ignore;
 		<<".",Rest/bits>> ->
 			{ok, domain, ?LOWER(Rest)};
 		_ ->