Demosthene-OR commited on
Commit
4a4b969
·
1 Parent(s): 5bf728b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -92,7 +92,7 @@ def authenticate(authorization: str = Header(None)):
92
  print("scheme, credentials ",authorization)
93
  try:
94
  scheme, credentials = authorization.split()
95
- print("scheme="+scheme.lower," credentials="+credentials)
96
  if scheme.lower != 'basic':
97
  raise HTTPException(status_code=401, detail="Utilisateur non authorisé "+scheme)
98
  username, password = credentials.split(":")
 
92
  print("scheme, credentials ",authorization)
93
  try:
94
  scheme, credentials = authorization.split()
95
+ print("scheme="+scheme.lower+" credentials="+credentials)
96
  if scheme.lower != 'basic':
97
  raise HTTPException(status_code=401, detail="Utilisateur non authorisé "+scheme)
98
  username, password = credentials.split(":")