Demosthene-OR
commited on
Commit
•
477c633
1
Parent(s):
168f619
Update main.py
Browse files
main.py
CHANGED
@@ -89,6 +89,7 @@ async def validation_exception_handler(request: Request, exc: ValidationError):
|
|
89 |
def authenticate(authorization: str = Header(None)):
|
90 |
if not authorization:
|
91 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
|
|
92 |
try:
|
93 |
scheme, credentials = authorization.split()
|
94 |
print("scheme, credentials ",scheme, credentials)
|
|
|
89 |
def authenticate(authorization: str = Header(None)):
|
90 |
if not authorization:
|
91 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
92 |
+
print("scheme, credentials ",authorization)
|
93 |
try:
|
94 |
scheme, credentials = authorization.split()
|
95 |
print("scheme, credentials ",scheme, credentials)
|