Skip to content

Commit 786091e

Browse files
43jaymarkushi
andcommitted
2/2 Respect default Locale when lowercasing header strings
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
1 parent 0550695 commit 786091e

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
@@ -131,7 +131,7 @@ private static boolean shouldCaptureUrl(
131131
Set<String> normalizedAllowed = new HashSet<>();
132132
for (String header : allowedHeaders) {
133133
if (header != null) {
134-
normalizedAllowed.add(header.toLowerCase());
134+
normalizedAllowed.add(header.toLowerCase(Locale.ROOT));
135135
}
136136
}
137137

0 commit comments

Comments
 (0)