Spaces:
Running
Running
Update components/middleware.py
Browse files- components/middleware.py +1 -1
components/middleware.py
CHANGED
|
@@ -261,7 +261,7 @@ class x401Kit(BaseHTTPMiddleware):
|
|
| 261 |
if country["data"] is None:
|
| 262 |
return JSONResponse(
|
| 263 |
|
| 264 |
-
content={"status": "
|
| 265 |
headers= {
|
| 266 |
"Access-Control-Allow-Origin": "*",
|
| 267 |
"Access-Control-Allow-Credentials": "true"
|
|
|
|
| 261 |
if country["data"] is None:
|
| 262 |
return JSONResponse(
|
| 263 |
|
| 264 |
+
content={"status": "locerror", "message": f"Auth error"},
|
| 265 |
headers= {
|
| 266 |
"Access-Control-Allow-Origin": "*",
|
| 267 |
"Access-Control-Allow-Credentials": "true"
|