From 82c4dd8b86484b4fe8db01e4daef2125b55d5ef4 Mon Sep 17 00:00:00 2001 From: maryhipp Date: Tue, 25 Apr 2023 09:23:32 -0700 Subject: [PATCH] fix(api): return same URL on location header --- invokeai/app/api/routers/images.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/invokeai/app/api/routers/images.py b/invokeai/app/api/routers/images.py index 98656c8bda..6220e98ca2 100644 --- a/invokeai/app/api/routers/images.py +++ b/invokeai/app/api/routers/images.py @@ -126,9 +126,7 @@ async def upload_image( ) response.status_code = 201 - response.headers["Location"] = request.url_for( - "get_image", image_type=ImageType.UPLOAD.value, image_name=filename - ) + response.headers["Location"] = image_url return res