fix(gui): switch txt2img to post on client
This commit is contained in:
parent
926f77b3b0
commit
e4542031c4
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue