mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 19:23:58 +01:00
Fix
This commit is contained in:
parent
c0cff2e709
commit
947b70aae9
|
@ -47,6 +47,8 @@ async def handle(incoming_request: fastapi.Request):
|
||||||
if not received_key or not received_key.startswith('Bearer '):
|
if not received_key or not received_key.startswith('Bearer '):
|
||||||
return await errors.error(403, 'No NovaAI API key given!', 'Add \'Authorization: Bearer nv-...\' to your request headers.')
|
return await errors.error(403, 'No NovaAI API key given!', 'Add \'Authorization: Bearer nv-...\' to your request headers.')
|
||||||
|
|
||||||
|
key_tags = ''
|
||||||
|
|
||||||
if '#' in received_key:
|
if '#' in received_key:
|
||||||
key_tags = received_key.split('#')[1]
|
key_tags = received_key.split('#')[1]
|
||||||
received_key = received_key.split('#')[0]
|
received_key = received_key.split('#')[0]
|
||||||
|
|
Loading…
Reference in a new issue