Skip to content

Commit ab76cee

Browse files
committed
Missed one crucial detail
1 parent c258fab commit ab76cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/templates/endpoint_module.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _get_kwargs(
4848
{% elif endpoint.json_body %}
4949
"json": {{ "json_" + endpoint.json_body.python_name }},
5050
{% elif endpoint.binary_body %}
51-
"content": {{ endpoint.binary_body.python_name }},
51+
"content": {{ endpoint.binary_body.python_name }}.payload,
5252
{% endif %}
5353
{% if endpoint.query_parameters %}
5454
"params": params,

0 commit comments

Comments
 (0)