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:
parent
1851032482
commit
f077c711a8
2 changed files with 47 additions and 22 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue