Skip to content

Commit 0550695

Browse files
43jaymarkushi
andcommitted
1/2 Respect default Locale when lowercasing header strings
Co-authored-by: Markus Hintersteiner <[email protected]>
1 parent 1c24fca commit 0550695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/main/java/io/sentry/util/network/NetworkDetailCaptureUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private static boolean shouldCaptureUrl(
136136
}
137137

138138
for (Map.Entry<String, String> entry : allHeaders.entrySet()) {
139-
if (normalizedAllowed.contains(entry.getKey().toLowerCase())) {
139+
if (normalizedAllowed.contains(entry.getKey().toLowerCase(Locale.ROOT))) {
140140
capturedHeaders.put(entry.getKey(), entry.getValue());
141141
}
142142
}

0 commit comments

Comments
 (0)