0
Fork 0
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:
geeksilva97 2024-01-09 20:16:54 -03:00
parent 69dda7292b
commit 60c7b656a0

View file

@ -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