Commit 590fd129 authored by root's avatar root
Browse files

SSRF Fix Updated

parent 1f8d08ea
...@@ -151,7 +151,6 @@ async def update_engine_url( ...@@ -151,7 +151,6 @@ async def update_engine_url(
url = form_data.AUTOMATIC1111_BASE_URL.strip("/") url = form_data.AUTOMATIC1111_BASE_URL.strip("/")
try: try:
r = requests.head(url) r = requests.head(url)
r.raise_for_status()
app.state.config.AUTOMATIC1111_BASE_URL = url app.state.config.AUTOMATIC1111_BASE_URL = url
except Exception as e: except Exception as e:
raise HTTPException(status_code=400, detail="Invalid URL provided.") raise HTTPException(status_code=400, detail="Invalid URL provided.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment