Skip to content

Commit c0b07ff

Browse files
Update hosts
1 parent 386372f commit c0b07ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/gen_ai/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def validate_signature(self, request):
2626
)
2727
if isinstance(key, str):
2828
key = key.encode("utf-8")
29-
expected_sig = request.META.get("HTTP_X_GEN_AI_AUTH_SIGNATURE")
29+
expected_sig = request.headers.get("HTTP-X-GEN-AI-AUTH-SIGNATURE")
3030
computed_sig = (
3131
"sha256=" + hmac.new(key, request.body, digestmod=sha256).hexdigest()
3232
)

codecov/settings_staging.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
DEBUG = False
66
THIS_POD_IP = os.environ.get("THIS_POD_IP")
7-
ALLOWED_HOSTS = ["*"]
7+
ALLOWED_HOSTS = get_config(
8+
"setup", "api_allowed_hosts", default=["stage-api.codecov.dev"]
9+
)
810
if THIS_POD_IP:
911
ALLOWED_HOSTS.append(THIS_POD_IP)
1012

0 commit comments

Comments
 (0)