File tree Expand file tree Collapse file tree
golden-record/my_test_api_client/api
literal-enums-golden-record/my_enum_api_client/api/tests
integration-tests/integration_tests/api/body Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,21 +27,24 @@ def _get_kwargs(
2727 _kwargs ["json" ] = body .to_dict ()
2828
2929 headers ["Content-Type" ] = "application/json"
30+
3031 if isinstance (body , File ):
3132 if not isinstance (body , Unset ):
3233 _kwargs ["content" ] = body .payload
3334
3435 headers ["Content-Type" ] = "application/octet-stream"
36+
3537 if isinstance (body , PostBodiesMultipleDataBody ):
3638 if not isinstance (body , Unset ):
3739 _kwargs ["data" ] = body .to_dict ()
3840
3941 headers ["Content-Type" ] = "application/x-www-form-urlencoded"
42+
4043 if isinstance (body , PostBodiesMultipleFilesBody ):
4144 if not isinstance (body , Unset ):
4245 _kwargs ["files" ] = body .to_multipart ()
4346
44- headers ["Content-Type" ] = "multipart/form-data"
47+ headers ["Content-Type" ] = "multipart/form-data; boundary=+++ "
4548
4649 _kwargs ["headers" ] = headers
4750 return _kwargs
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ def _get_kwargs(
2323
2424 _kwargs ["files" ] = body .to_multipart ()
2525
26+ headers ["Content-Type" ] = "multipart/form-data; boundary=+++"
27+
2628 _kwargs ["headers" ] = headers
2729 return _kwargs
2830
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ def _get_kwargs(
2424 if not isinstance (body , Unset ):
2525 _kwargs ["files" ] = body .to_multipart ()
2626
27+ headers ["Content-Type" ] = "multipart/form-data; boundary=+++"
28+
2729 _kwargs ["headers" ] = headers
2830 return _kwargs
2931
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ def _get_kwargs(
2525 if not isinstance (body , Unset ):
2626 _kwargs ["files" ] = body .to_multipart ()
2727
28+ headers ["Content-Type" ] = "multipart/form-data; boundary=+++"
29+
2830 _kwargs ["headers" ] = headers
2931 return _kwargs
3032
You can’t perform that action at this time.
0 commit comments