Skip to content

Commit 85c43e1

Browse files
siyuniu-mstrask
andauthored
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/SnippetInjectingResponseWrapper.java
Co-authored-by: Trask Stalnaker <[email protected]>
1 parent 6a5329a commit 85c43e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/SnippetInjectingResponseWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void updateContentLengthIfPreviouslySet() {
178178

179179
public boolean isNotSafeToInject() {
180180
// if content-length was set and response was already committed (headers sent to the client),
181-
// then not safe to inject because the content-length header cannot be updated to account for
181+
// then it is not safe to inject because the content-length header cannot be updated to account for
182182
// the snippet length
183183
return isCommitted() && (contentLength != UNSET);
184184
}

0 commit comments

Comments
 (0)