diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/world/net/http/cookie.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/world/net/http/cookie.lux b/stdlib/source/library/lux/world/net/http/cookie.lux index a138f556c..c9673ed31 100644 --- a/stdlib/source/library/lux/world/net/http/cookie.lux +++ b/stdlib/source/library/lux/world/net/http/cookie.lux @@ -30,7 +30,7 @@ (def: .public (set name value) (-> Text Text Header) - (header.add "Set-Cookie" (format name "=" value))) + (header.has "Set-Cookie" (format name "=" value))) (def: .public (max_age duration) (-> Duration Directive) @@ -73,7 +73,7 @@ [key (l.slice (l.many! (l.none_of! "="))) _ (l.this "=") value (l.slice (l.many! (l.none_of! ";")))] - (in (dictionary.put key value context)))) + (in (dictionary.has key value context)))) (def: (cookies context) (-> Context (Parser Context)) |