Skip to content

Commit eae929e

Browse files
committed
fix
1 parent c6083b5 commit eae929e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/blocking/BlockingActionHelper.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,18 @@ public static TemplateType determineTemplateType(
119119
}
120120

121121
public static byte[] getTemplate(TemplateType type) {
122+
return getTemplate(type, null);
123+
}
124+
125+
public static byte[] getTemplate(TemplateType type, String securityResponseId) {
126+
byte[] template;
122127
if (type == TemplateType.JSON) {
123-
return TEMPLATE_JSON;
128+
template = TEMPLATE_JSON;
124129
} else if (type == TemplateType.HTML) {
125-
return TEMPLATE_HTML;
130+
template = TEMPLATE_HTML;
131+
} else {
132+
return null;
126133
}
127-
return null;
128-
}
129134

130135
// Use empty string when securityResponseId is not present
131136
String replacementValue =

0 commit comments

Comments
 (0)