InvokeAI/invokeai/frontend
psychedelicious 8e724b5abe fix(ui): fix image upload
`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.
2023-06-24 17:57:39 +10:00
..
CLI convert add_model(), del_model(), list_models() etc to use bifurcated names 2023-05-13 14:44:44 -04:00
install allow logger to be reconfigured after startup 2023-06-08 09:23:11 -04:00
merge fix potential race condition in config system 2023-05-25 20:41:26 -04:00
training fix potential race condition in config system 2023-05-25 20:41:26 -04:00
web fix(ui): fix image upload 2023-06-24 17:57:39 +10:00
__init__.py all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00