Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Jan 22, 2024
2 parents ff4e2a4 + 86ed5ad commit 887f3f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion emmett/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.5.7"
__version__ = "2.5.8"
8 changes: 7 additions & 1 deletion emmett/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,13 @@ async def asgi(self, scope, send):
return
self._headers.update(self._get_stat_headers(stat_data))
await self._send_headers(send)
await self._send_body(send)
if 'http.response.pathsend' in scope['extensions']:
await send({
'type': 'http.response.pathsend',
'path': str(self.file_path)
})
else:
await self._send_body(send)
except IOError as e:
if e.errno == errno.EACCES:
await HTTP(403).send(scope, send)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "emmett"

[tool.poetry]
name = "emmett"
version = "2.5.7"
version = "2.5.8"
description = "The web framework for inventors"
authors = ["Giovanni Barillari <gi0baro@d4net.org>"]
license = "BSD-3-Clause"
Expand Down Expand Up @@ -47,7 +47,7 @@ emmett = "emmett.cli:main"
[tool.poetry.dependencies]
python = "^3.8"
click = ">=6.0"
granian = "~0.7.0"
granian = "~1.0.0"
emmett-crypto = "^0.5"
pendulum = "~3.0.0"
pyDAL = "17.3"
Expand Down

0 comments on commit 887f3f2

Please sign in to comment.