mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
fix function clause
This commit is contained in:
parent
69dda7292b
commit
60c7b656a0
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ stream_reply(Status, Req) ->
|
||||||
stream_reply(_, _, #{has_sent_resp := _}) ->
|
stream_reply(_, _, #{has_sent_resp := _}) ->
|
||||||
exit({response_error, response_already_sent,
|
exit({response_error, response_already_sent,
|
||||||
'The final response has already been sent.'});
|
'The final response has already been sent.'});
|
||||||
stream_reply(_, #{<<"set-cookie">> := _}, _, _) ->
|
stream_reply(_, #{<<"set-cookie">> := _}, _) ->
|
||||||
?INVALID_COOKIE_HEADER_ERROR;
|
?INVALID_COOKIE_HEADER_ERROR;
|
||||||
%% 204 and 304 responses must NOT send a body. We therefore
|
%% 204 and 304 responses must NOT send a body. We therefore
|
||||||
%% transform the call to a full response and expect the user
|
%% transform the call to a full response and expect the user
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue