fix: clear session headers on endpoint deletion (#477)
This commit is contained in:
parent
5ed9b74cd0
commit
9e8de43f25
1 changed files with 1 additions and 0 deletions
|
|
@ -1382,6 +1382,7 @@ def setup_model_routes(model_discovery):
|
||||||
if _session_uses_endpoint_url(row.endpoint_url or "", base_url):
|
if _session_uses_endpoint_url(row.endpoint_url or "", base_url):
|
||||||
row.endpoint_url = ""
|
row.endpoint_url = ""
|
||||||
row.model = ""
|
row.model = ""
|
||||||
|
row.headers = {}
|
||||||
row.updated_at = datetime.utcnow()
|
row.updated_at = datetime.utcnow()
|
||||||
cleared += 1
|
cleared += 1
|
||||||
return cleared
|
return cleared
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue