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:e29bcc1a-ea71-04c8-8f53-b4653413e26a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E960:80E1B:6D6AE0:987BDB:6980D076 |
| html-safe-nonce | ed56cff6ddefb702bc57d7093f72f93cf6532fc675b098be2fc9b845669129f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTYwOjgwRTFCOjZENkFFMDo5ODdCREI6Njk4MEQwNzYiLCJ2aXNpdG9yX2lkIjoiNjY3NTIyNjAzNTYzNTY3MTE1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57b4a7b6d857475380d6470d10cfc5aa7c821f063805de9a860764c3b34cad2a |
| 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 | 17bc0924c8593587ed4a8ae12c6076d0895c5516aaa44daccbb68ede54878b1f |
| 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 | dc5087b03c3615c7b9c6b6b80f2a026f3f0b91cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width