fix: Server sometimes throwing 308 and ignoring requests
This commit is contained in:
parent
88558579d7
commit
9711b0c926
@ -2,7 +2,7 @@ export async function generateStream(file: File): Promise<Response> {
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
|
|
||||||
const res = await fetch(`/api/set-profile-photo/`, {
|
const res = await fetch(`/api/set-profile-photo`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formData,
|
body: formData,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user