File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/mock_vws/_query_validators Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def validate_auth_header_number_of_parts(
86
86
@wrapt .decorator
87
87
def validate_client_key_exists (
88
88
wrapped : Callable [..., str ],
89
- instance : Any ,
89
+ instance : Any , # pylint: disable=unused-argument
90
90
args : Tuple [_RequestObjectProxy , _Context ],
91
91
kwargs : Dict ,
92
92
) -> str :
@@ -106,8 +106,8 @@ def validate_client_key_exists(
106
106
request , context = args
107
107
108
108
header = request .headers ['Authorization' ]
109
- before_signature , _ = header .split (b':' )
110
- _ , access_key = before_signature .split (b' ' )
109
+ first_part , signature = header .split (b':' )
110
+ _ , access_key = first_part .split (b' ' )
111
111
for database in instance .databases :
112
112
if access_key == database .client_access_key :
113
113
return wrapped (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments