Skip to content

Commit 63d5655

Browse files
Using existing block config
1 parent c04c1e3 commit 63d5655

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datadog_lambda/asm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from copy import deepcopy
44
from typing import Any, Dict, List, Optional, Union
55

6-
from ddtrace.appsec._utils import Block_config
76
from ddtrace.contrib.internal.trace_utils import _get_request_header_client_ip
87
from ddtrace.internal import core
98
from ddtrace.internal.utils import get_blocked
@@ -224,9 +223,8 @@ def get_asm_blocked_response(
224223
content = ""
225224
else:
226225
content_type = blocked.get("content-type", "application/json")
227-
blocked_config = Block_config()
228226
content = http_utils._get_blocked_template(
229-
content_type, blocked_config.block_id
227+
content_type, blocked.get("block_id", "default")
230228
)
231229

232230
response = {

0 commit comments

Comments
 (0)