From e4542031c4262b1a12be639e5bad747763eb3e8b Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sat, 7 Jan 2023 15:24:44 -0600 Subject: [PATCH] fix(gui): switch txt2img to post on client --- gui/src/api/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/src/api/client.ts b/gui/src/api/client.ts index 6f7317ee..b6b89b80 100644 --- a/gui/src/api/client.ts +++ b/gui/src/api/client.ts @@ -159,7 +159,9 @@ export function makeClient(root: string, f = fetch): ApiClient { url.searchParams.append('prompt', params.prompt); - pending = f(url).then((res) => imageFromResponse(root, res)).finally(() => { + pending = f(url, { + method: 'POST', + }).then((res) => imageFromResponse(root, res)).finally(() => { pending = undefined; });