0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix cowboy_http:cookie_to_iodata/3

No more trying to quote, this is still completely broken everywhere.
This commit is contained in:
Loïc Hoguin 2012-12-17 12:32:17 +01:00
parent 1851032482
commit f077c711a8
2 changed files with 47 additions and 22 deletions

View file

@ -800,6 +800,12 @@ multipart_skip(Req) ->
%% Response API.
%% @doc Add a cookie header to the response.
%%
%% The cookie name cannot contain any of the following characters:
%% =,;\s\t\r\n\013\014
%%
%% The cookie value cannot contain any of the following characters:
%% ,; \t\r\n\013\014
-spec set_resp_cookie(iodata(), iodata(), cookie_opts(), Req)
-> Req when Req::req().
set_resp_cookie(Name, Value, Opts, Req) ->