Skip to content

Commit 694431c

Browse files
Update src/Authentication/Authentication/Helpers/ContentHelper.cs
Co-authored-by: Andrew Omondi <andrueastman@users.noreply.github.com>
1 parent 61b0571 commit 694431c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication/Authentication/Helpers/ContentHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static bool CheckIsOctetStream(string contentType)
8282
return isOctetStream;
8383
}
8484

85-
private static bool IsPlainText(string contentType) => string.Equals(contentType.ToLower(CultureInfo.InvariantCulture), "text/plain");
85+
private static bool IsPlainText(string contentType) => contentType.Equals("text/plain", StringComparison.OrdinalIgnoreCase);
8686

8787
// used to split contentType arguments
8888
private static readonly char[] ContentTypeParamSeparator = { ';' };

0 commit comments

Comments
 (0)