mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
8e724b5abe
`openapi-fetch` does not handle non-JSON `body`s, always stringifying them, and sets the `content-type` to `application/json`. The patch here does two things: - Do not stringify `body` if it is one of the types that should not be stringified (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#body) - Do not add `content-type: application/json` unless it really is stringified JSON. Upstream issue: https://github.com/drwpow/openapi-typescript/issues/1123 I'm not a bit lost on fixing the types and adding tests, so not raising a PR upstream. |
||
---|---|---|
.. | ||
.husky | ||
.yarn/releases | ||
config | ||
dist | ||
docs | ||
patches | ||
public/locales | ||
src | ||
static | ||
tests | ||
__init__.py | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.js | ||
.yarnrc | ||
.yarnrc.yml | ||
favicon.ico | ||
index.html | ||
package.json | ||
stats.html | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts | ||
yarn.lock |