File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 110110 "schema" : {
111111 "type" : " string" ,
112112 "format" : " password" ,
113- "description" : " A password to access a secret Paste. Must have `password: ` prefix."
113+ "description" : " A password to access a secret Paste. Must have `Password ` prefix."
114114 },
115115 "required" : false ,
116116 "in" : " header" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl<'r> FromRequest<'r> for PasswordHeader<'r> {
3434 None => return Outcome :: Error ( ( Status :: Unauthorized , "Missing Authorization header." ) ) ,
3535 } ;
3636
37- static PATTERN : Lazy < Regex > = Lazy :: new ( || Regex :: new ( r"(?i:password): .+" ) . unwrap ( ) ) ;
37+ static PATTERN : Lazy < Regex > = Lazy :: new ( || Regex :: new ( r"(?i:password) .+" ) . unwrap ( ) ) ;
3838
3939 if !PATTERN . is_match ( value) {
4040 return Outcome :: Error ( ( Status :: Unauthorized , "Invalid Authorization header." ) ) ;
You can’t perform that action at this time.
0 commit comments