Spaces:
Runtime error
Runtime error
Update server.py
Browse files
server.py
CHANGED
@@ -429,7 +429,7 @@ def before_request():
|
|
429 |
if request.method != 'OPTIONS' and is_authorize_ignored(request) == False and getattr(request.authorization, 'token', '') != api_key:
|
430 |
print(f"WARNING: Unauthorized API key access from {request.remote_addr}")
|
431 |
if request.method == 'POST':
|
432 |
-
print(f"Incoming POST request with {request.headers
|
433 |
response = jsonify({ 'error': '401: Invalid API key' })
|
434 |
response.status_code = 401
|
435 |
return "Everyone was having a good time and then this faggot showed up.jpg -> rentry.org/207.jpg"
|
|
|
429 |
if request.method != 'OPTIONS' and is_authorize_ignored(request) == False and getattr(request.authorization, 'token', '') != api_key:
|
430 |
print(f"WARNING: Unauthorized API key access from {request.remote_addr}")
|
431 |
if request.method == 'POST':
|
432 |
+
print(f"Incoming POST request with {request.headers}")
|
433 |
response = jsonify({ 'error': '401: Invalid API key' })
|
434 |
response.status_code = 401
|
435 |
return "Everyone was having a good time and then this faggot showed up.jpg -> rentry.org/207.jpg"
|