mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 05:37:05 +08:00
handle case where request body is empty
This commit is contained in:
parent
88185aeb81
commit
42116a1f8a
@ -685,6 +685,7 @@ class PromptServer():
|
|||||||
|
|
||||||
@routes.post("/interrupt")
|
@routes.post("/interrupt")
|
||||||
async def post_interrupt(request):
|
async def post_interrupt(request):
|
||||||
|
if request.can_read_body:
|
||||||
json_data = await request.json()
|
json_data = await request.json()
|
||||||
if "id" in json_data:
|
if "id" in json_data:
|
||||||
current_queue = self.prompt_queue.get_current_queue_volatile()
|
current_queue = self.prompt_queue.get_current_queue_volatile()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user