Skip to content

Commit 1695a56

Browse files
committed
Push version and fix flake8 errors
1 parent bf9d81d commit 1695a56

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "starlette_web"
7-
version = "0.1.9"
7+
version = "0.1.10"
88
description = "Asynchronous web framework, based on Starlette and inspired by Django"
99
readme = "README.md"
1010
authors = [

starlette_web/common/authorization/jwt_backend.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ async def authenticate(self, **kwargs) -> BaseUserMixin:
3333
return user
3434

3535
def _get_auth_header(self):
36-
# Note: JavaScript browser API does not allow sending headers when initializing WS connection.
36+
# Note: JavaScript browser API does not allow sending headers
37+
# when initializing WS connection.
3738
# You may want to use Sec-WebSocket-Protocol header instead.
38-
auth_header = self.request.headers.get("Authorization") \
39-
or self.request.headers.get("authorization")
39+
auth_header = (
40+
self.request.headers.get("Authorization")
41+
or self.request.headers.get("authorization")
42+
)
4043
if not auth_header:
4144
raise AuthenticationRequiredError("Invalid token header. No credentials provided.")
4245

0 commit comments

Comments
 (0)