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):
11651165
11661166 for secret in self .db .config .WEB_JWT_SECRET :
11671167 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 )
11731172
11741173 except jwt .exceptions .InvalidSignatureError as err :
11751174 # Try more signatures.
@@ -2438,7 +2437,7 @@ def setVary(self, header):
24382437 '''Vary header will include the new header. This will append
24392438 if Vary exists.'''
24402439
2441- if ('Vary' in self .additional_headers and
2440+ if ('Vary' in self .additional_headers and
24422441 header not in self .additional_headers ['Vary' ]):
24432442 self .additional_headers ['Vary' ] += ", %s" % header
24442443 else :
You can’t perform that action at this time.
0 commit comments