File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1165,11 +1165,10 @@ def authenticate_bearer_token(self, challenge):
1165
1165
1166
1166
for secret in self .db .config .WEB_JWT_SECRET :
1167
1167
try : # handle jwt exceptions
1168
- token = jwt .decode (challenge , secret ,
1169
- algorithms = ['HS256' ],
1170
- audience = self .db .config .TRACKER_WEB ,
1171
- issuer = self .db .config .TRACKER_WEB )
1172
- return (token )
1168
+ return jwt .decode (challenge , secret ,
1169
+ algorithms = ['HS256' ],
1170
+ audience = self .db .config .TRACKER_WEB ,
1171
+ issuer = self .db .config .TRACKER_WEB )
1173
1172
1174
1173
except jwt .exceptions .InvalidSignatureError as err :
1175
1174
# Try more signatures.
@@ -2438,7 +2437,7 @@ def setVary(self, header):
2438
2437
'''Vary header will include the new header. This will append
2439
2438
if Vary exists.'''
2440
2439
2441
- if ('Vary' in self .additional_headers and
2440
+ if ('Vary' in self .additional_headers and
2442
2441
header not in self .additional_headers ['Vary' ]):
2443
2442
self .additional_headers ['Vary' ] += ", %s" % header
2444
2443
else :
You can’t perform that action at this time.
0 commit comments