Skip to content

Commit

Permalink
Fix an issue where using a streamed body could crash the decision core (
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Jun 21, 2023
1 parent 21ac6ff commit 87de182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cowmachine_decision_core.erl
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ process_helper(ContentTypeAccepted, State, Context) ->
{error, _} -> Result;
true -> Result;
false -> Result;
RespBody when is_binary(RespBody); is_list(RespBody) ->
RespBody ->
C3 = cowmachine_req:set_resp_body(RespBody, C2),
{body, S2, C3}
end.
Expand Down

0 comments on commit 87de182

Please sign in to comment.