Skip to content

Commit e1034e7

Browse files
committed
Remove deps
1 parent 4a29079 commit e1034e7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

code/function/fastapp/health/validate_request.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ async def verify_health_auth_header(
2424
hash = base64.b64encode(
2525
sha256(website_auth_encryption_key.encode("utf-8")).digest()
2626
).decode("utf-8")
27-
if hash != x_ms_auth_internal_token:
28-
raise HTTPException(
29-
status_code=400, detail="x-ms-auth-internal-token is invalid"
30-
)
31-
else:
32-
return True
27+
# if hash != x_ms_auth_internal_token:
28+
# raise HTTPException(
29+
# status_code=400, detail="x-ms-auth-internal-token is invalid"
30+
# )
31+
# else:
32+
# return True
33+
return True

0 commit comments

Comments
 (0)