aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Auth/MyAuthenticationHandler.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-13 16:23:54 +0800
committercrupest <crupest@outlook.com>2020-11-13 16:25:02 +0800
commit2a132acab30042f068577096f6b97f6961951b0e (patch)
treee90e1052e797282d002b93d44b2a0ec86a2bc5d3 /BackEnd/Timeline/Auth/MyAuthenticationHandler.cs
parent381cb7c64123c71899f549baa16bb610cc8b037f (diff)
downloadtimeline-2a132acab30042f068577096f6b97f6961951b0e.tar.gz
timeline-2a132acab30042f068577096f6b97f6961951b0e.tar.bz2
timeline-2a132acab30042f068577096f6b97f6961951b0e.zip
refactor: Fix #178 .
Diffstat (limited to 'BackEnd/Timeline/Auth/MyAuthenticationHandler.cs')
-rw-r--r--BackEnd/Timeline/Auth/MyAuthenticationHandler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Auth/MyAuthenticationHandler.cs b/BackEnd/Timeline/Auth/MyAuthenticationHandler.cs
index b5e22a14..223ff187 100644
--- a/BackEnd/Timeline/Auth/MyAuthenticationHandler.cs
+++ b/BackEnd/Timeline/Auth/MyAuthenticationHandler.cs
@@ -45,7 +45,7 @@ namespace Timeline.Auth
{
// check the authorization header
string header = Request.Headers[HeaderNames.Authorization];
- if (!string.IsNullOrEmpty(header) && header.StartsWith("Bearer ", StringComparison.InvariantCultureIgnoreCase))
+ if (!string.IsNullOrEmpty(header) && header.StartsWith("Bearer ", StringComparison.OrdinalIgnoreCase))
{
var token = header.Substring("Bearer ".Length).Trim();
_logger.LogInformation(LogTokenFoundInHeader, token);