Skip to content

Commit ac5908b

Browse files
Update api/gen_ai/views.py
Co-authored-by: Matthew T <[email protected]>
1 parent 624ee10 commit ac5908b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

api/gen_ai/views.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import logging
33
from hashlib import sha256
44

5-
from django.utils.crypto import constant_time_compare
65
from rest_framework.exceptions import NotFound, PermissionDenied
76
from rest_framework.permissions import AllowAny
87
from rest_framework.response import Response
@@ -30,7 +29,6 @@ def validate_signature(self, request):
3029
if isinstance(key, str):
3130
key = key.encode("utf-8")
3231
expected_sig = request.headers.get("HTTP-X-GEN-AI-AUTH-SIGNATURE")
33-
print(request.headers)
3432
computed_sig = (
3533
"sha256=" + hmac.new(key, request.body, digestmod=sha256).hexdigest()
3634
)

0 commit comments

Comments
 (0)