Skip to content

Commit 891c835

Browse files
committed
wip
1 parent 4a7ffc5 commit 891c835

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/GatewayBridge.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ private Flow<Void> onResponseBodyDone(RequestContext ctx_, StoredBodySupplier su
639639
if (bodyContent.length() == 0) {
640640
return NoopFlow.INSTANCE;
641641
}
642-
DataBundle bundle = new SingletonDataBundle<>(KnownAddresses.RESPONSE_BODY_RAW, bodyContent);
642+
DataBundle bundle =
643+
new SingletonDataBundle<>(KnownAddresses.RESPONSE_BODY_OBJECT, bodyContent);
643644
try {
644645
GatewayContext gwCtx = new GatewayContext(false);
645646
return producerService.publishDataEvent(subInfo, ctx, bundle, gwCtx);
@@ -1010,7 +1011,7 @@ private Flow<Void> maybePublishResponseData(AppSecRequestContext ctx) {
10101011
String.valueOf(ctx.getResponseStatus()),
10111012
KnownAddresses.RESPONSE_HEADERS_NO_COOKIES,
10121013
ctx.getResponseHeaders(),
1013-
KnownAddresses.RESPONSE_BODY_RAW,
1014+
KnownAddresses.RESPONSE_BODY_OBJECT,
10141015
ctx.getStoredResponseBody());
10151016

10161017
while (true) {

0 commit comments

Comments
 (0)