-
Notifications
You must be signed in to change notification settings - Fork 181
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
Hide Authorization header value #1127
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1127 +/- ##
==========================================
+ Coverage 82.69% 82.71% +0.01%
==========================================
Files 32 32
Lines 3052 3054 +2
==========================================
+ Hits 2524 2526 +2
Misses 528 528 ☔ View full report in Codecov by Sentry. |
Edits the `show` and `writeheaders` methods to hide the value of Authorization header. This hides the Authorization header when `Request` or `RequestError` objects are `show`n. Fix for JuliaWeb#1125
…eaders like Cookie and Set-Cookie
Co-authored-by: Sebastian Pfitzner <[email protected]>
Co-authored-by: Sebastian Pfitzner <[email protected]>
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.
I added some tests for case insensitivity, combined into one regex, and added masking also for Proxy-Authorization
.
Edits the
show
andwriteheaders
methods to hide the value of Authorization header. This hides the Authorization header value whenRequest
orRequestError
objects areshow
n.Fix for #1125