Skip to content

Commit

Permalink
release 0.0.50 (#45)
Browse files Browse the repository at this point in the history
* update dependency

---------

Co-authored-by: nggit <[email protected]>
  • Loading branch information
nggit and nggit authored Nov 8, 2024
1 parent a4dce0e commit 3c003c4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
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

0 comments on commit 3c003c4

Please sign in to comment.