You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/ServletOutputStreamInjectionHelper.java
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -41,11 +41,10 @@ public static boolean handleWrite(
41
41
}
42
42
state.setAlreadyInjected(); // set before write to avoid recursive loop
43
43
out.write(original, off, i + 1);
44
+
if (state.getWrapper().isNotSafeToInject()) {
45
+
returnfalse;
46
+
}
44
47
try {
45
-
if (state.getWrapper().isNotSafeToInject()) {
46
-
// content length already set and sent, don't inject
Copy file name to clipboardExpand all lines: instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/SnippetInjectingPrintWriter.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,6 @@ public void write(int b) {
34
34
// write(int)
35
35
state.setAlreadyInjected();
36
36
if (state.getWrapper().isNotSafeToInject()) {
37
-
// content length already set and sent, don't inject
Copy file name to clipboardExpand all lines: instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/SnippetInjectingResponseWrapper.java
0 commit comments