Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependency #45

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/import.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

from httpout import worker, context # noqa: F401
from httpout import globals, context # noqa: F401
from httpout import app # noqa: F401
2 changes: 1 addition & 1 deletion httpout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2024 nggit

__version__ = '0.0.47'
__version__ = '0.0.50'
__all__ = ('HTTPOut',)

from .httpout import HTTPOut # noqa: E402
4 changes: 2 additions & 2 deletions httpout/httpout.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def _on_request(self, **server):
request = server['request']
response = server['response']
logger = server['logger']
worker_ctx = server['worker']
worker_ctx = server['globals']
document_root = worker_ctx.options['document_root']

if not request.is_valid:
Expand Down Expand Up @@ -326,7 +326,7 @@ async def _on_request(self, **server):

async def _on_close(self, **server):
request_ctx = server['context']
worker_ctx = server['worker']
worker_ctx = server['globals']
logger = server['logger']

if 'module_path' in request_ctx:
Expand Down
2 changes: 1 addition & 1 deletion httpout/lib/http_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def set_content_type(self, content_type='text/html; charset=utf-8'):
self.call_soon(self.response.set_content_type, content_type)

async def _run_middleware(self):
worker_ctx = self.response.request.protocol.worker
worker_ctx = self.response.request.protocol.globals
middlewares = worker_ctx.options['_middlewares']['response']
i = len(middlewares)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = """\
requires-python = '>=3.7'
dependencies = [
'awaiter',
'tremolo>=0.0.761',
'tremolo>=0.0.770',
]
license = { text = 'MIT License' }
classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
awaiter
tremolo>=0.0.761
tremolo>=0.0.770
Loading