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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:bdc96d49-5a3a-d8e6-3d89-1a23fff02cff |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A6F6:247D5D:3DF8B01:54DDB3D:6980C518 |
| html-safe-nonce | 1fcf5c225d702e7a88f6c168d1af32d4cb97d566f8cd7f31d651ded097be385f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkY2OjI0N0Q1RDozREY4QjAxOjU0RERCM0Q6Njk4MEM1MTgiLCJ2aXNpdG9yX2lkIjoiNDMxNzk1MzY0NDkxMDY1ODg0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b196b2005be26167cea27f5a7b734e3bbeba0e126bff150a8a46430f4c8f5512 |
| hovercard-subject-tag | pull_request:1774339740 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | fb936832e40deb3175641d9cfedc8432372f91b0bc899576222953095fc7879e |
| turbo-cache-control | no-preview |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e9b7987a76a2b9d08066d02bb64947a61943332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width