forked from loafle/openapi-generator-original
Return empty binary for 304 (#9800)
This commit is contained in:
parent
73350073b2
commit
513e242a3e
@ -244,5 +244,7 @@ validate_headers(_, Req) -> {true, Req}.
|
||||
|
||||
prepare_body(204, Body) when map_size(Body) == 0; length(Body) == 0 ->
|
||||
<<>>;
|
||||
prepare_body(304, Body) when map_size(Body) == 0; length(Body) == 0 ->
|
||||
<<>>;
|
||||
prepare_body(_Code, Body) ->
|
||||
jsx:encode(Body).
|
||||
|
Loading…
x
Reference in New Issue
Block a user