-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix accents support in x-remote-user-name
#9986
Conversation
Signed-off-by: Leo Valais <[email protected]>
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #9986 +/- ##
==========================================
+ Coverage 79.84% 79.87% +0.02%
==========================================
Files 1048 1048
Lines 105058 105241 +183
Branches 756 756
==========================================
+ Hits 83881 84058 +177
- Misses 21136 21142 +6
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
x-remote-user-name
@@ -201,14 +202,12 @@ async fn authenticate( | |||
} | |||
return Ok(Authentication::Unauthenticated); | |||
}; | |||
let identity = identity | |||
.to_str() | |||
let identity = str::from_utf8(identity.as_bytes()) | |||
.expect("unexpected non-ascii characters in x-remote-user-identity"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.expect("unexpected non-ascii characters in x-remote-user-identity"); | |
.expect("unexpected non-utf8 characters in x-remote-user-identity"); |
No description provided.