Skip to content

Commit

Permalink
add src
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 16, 2023
1 parent 686ec12 commit 9844a06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib_comfyui/webui/reverse_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def create_http_reverse_proxy(fast_api, comfyui_url, proxy_route):

web_client = httpx.AsyncClient(base_url=comfyui_url)

# src: https://github.com/tiangolo/fastapi/issues/1788#issuecomment-1071222163
async def reverse_proxy(request: Request):
base_path = request.url.path.replace(proxy_route, "", 1)
url = httpx.URL(path=base_path, query=request.url.query.encode("utf-8"))
Expand Down

0 comments on commit 9844a06

Please sign in to comment.