Title: Explicitly set boundary for multipart/form-data by linkdd · Pull Request #1005 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Explicitly set boundary for multipart/form-data by linkdd · Pull Request #1005 · openapi-generators/openapi-python-client
X Title: Explicitly set boundary for multipart/form-data by linkdd · Pull Request #1005 · openapi-generators/openapi-python-client
Description: Python Version OpenAPI Client Generator Version 3.11.6 0.18.0 Actual Behavior When an endpoint only has one body type, which is multipart/form-data, the Content-Type header is not set, so that HTTPX can set it with the correct boundary. However, when an endpoint has multiple body types, the Content-Type header is always set, and HTTPX do not override it, which results in a missing boundary for multipart/form-data body types (resulting in a 400 - Bad Request response from the servers). Proposed Changes Let's always set the boundary to +++ to avoid any potential problem. NB: This is kind of related to #1004, since in my specific case, the multipart/form-data body type is the last, it is always the one that is used.
Open Graph Description: Python Version OpenAPI Client Generator Version 3.11.6 0.18.0 Actual Behavior When an endpoint only has one body type, which is multipart/form-data, the Content-Type header is not set, so th...
X Description: Python Version OpenAPI Client Generator Version 3.11.6 0.18.0 Actual Behavior When an endpoint only has one body type, which is multipart/form-data, the Content-Type header is not set, so th...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/pull/1005
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:07248ccf-1ead-9beb-124b-9d729e8e44db |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D4E2:654F2:1A521A2:2272D37:698047A3 |
| html-safe-nonce | 1cc656883e3ca22fb4c0a2e45ef1683c295cc559dafece7f1cff7442609b6cbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEUyOjY1NEYyOjFBNTIxQTI6MjI3MkQzNzo2OTgwNDdBMyIsInZpc2l0b3JfaWQiOiI1MDQ1MjM4NjcyMDk4NjA5MDYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 609d618d43af1864d9d862139be94856132e87521ef19c1f6e1257671e9a24c4 |
| hovercard-subject-tag | pull_request:1774339740 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/openapi-generators/openapi-python-client/pull/1005/files |
| twitter:image | https://avatars.githubusercontent.com/u/9212?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9212?s=400&v=4 |
| og:image:alt | Python Version OpenAPI Client Generator Version 3.11.6 0.18.0 Actual Behavior When an endpoint only has one body type, which is multipart/form-data, the Content-Type header is not set, so th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git |
| octolytics-dimension-user_id | 84925606 |
| octolytics-dimension-user_login | openapi-generators |
| octolytics-dimension-repository_id | 240776275 |
| octolytics-dimension-repository_nwo | openapi-generators/openapi-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 240776275 |
| octolytics-dimension-repository_network_root_nwo | openapi-generators/openapi-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width