asgi-tools 1.3.2__cp313-cp313-win_amd64.whl → 1.3.3__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
asgi_tools/middleware.py CHANGED
@@ -403,7 +403,7 @@ class StaticFilesMiddleware(BaseMiddleware):
403
403
  filename = path[len(url_prefix) :].strip("/")
404
404
  for folder in self.folders:
405
405
  filepath = folder.joinpath(filename).resolve()
406
- if folder != filepath.parent:
406
+ if not filepath.is_file() or not filepath.is_relative_to(folder):
407
407
  continue
408
408
  with suppress(ASGIError):
409
409
  response = ResponseFile(filepath, headers_only=scope["method"] == "HEAD")
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asgi-tools
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: ASGI Toolkit to build web applications
5
5
  Author-email: Kirill Klenov <horneds@gmail.com>
6
6
  License: MIT License
@@ -33,7 +33,7 @@ Requires-Dist: async-timeout; python_version < "3.11"
33
33
  Provides-Extra: tests
34
34
  Requires-Dist: aiofile; extra == "tests"
35
35
  Requires-Dist: pytest; extra == "tests"
36
- Requires-Dist: pytest-aio[curio,trio]>=1.3.2; extra == "tests"
36
+ Requires-Dist: pytest-aio[curio,trio]>=1.3.3; extra == "tests"
37
37
  Requires-Dist: pytest-benchmark; extra == "tests"
38
38
  Requires-Dist: PyYAML; extra == "tests"
39
39
  Requires-Dist: ruff; extra == "tests"
@@ -4,13 +4,13 @@ asgi_tools/app.py,sha256=B9V7fmWafbBuxJ0TxeTFwytkLSHKRgZby3UtVoG3MlE,11093
4
4
  asgi_tools/constants.py,sha256=kgkeofmY_8tKF_V-3Xjj0CnAxF3IuYHYWPhSbmRko1w,134
5
5
  asgi_tools/errors.py,sha256=xkYWpPk7i11fKaRFCN070EdFq6KrqGli1eDNMDsq3GQ,575
6
6
  asgi_tools/forms.c,sha256=5YFDRlwc2lwU0sfZcB8CHTkGnN3HErxu3roYyD2tepU,846100
7
- asgi_tools/forms.cp313-win_amd64.pyd,sha256=E_e63LhJYIog5x_R6hxXG-j6McpfmVtVpQL38LY3jZ0,123904
7
+ asgi_tools/forms.cp313-win_amd64.pyd,sha256=F0HjYoTYpD-Lb_SLNG4-Xfea7CUtGtKrUnEvhfZnWac,123904
8
8
  asgi_tools/forms.py,sha256=YHxevjoOoNIgR2JRCEiCz_EeHmtZwiDzzdy1rBaL6jc,5225
9
9
  asgi_tools/forms.pyx,sha256=EYrZ1J_QDptrEcLBXZYFD9fk7odZoBNTqsdkSMTZ4Zw,5507
10
10
  asgi_tools/logs.py,sha256=mX_SHbUZ0_SkUTQ_ZGo2vBNNltgDswwxv-yUv-RuY2g,154
11
- asgi_tools/middleware.py,sha256=8c3Crj93FoPzXVqGRbCO56_M2HSRbmj-gBMyJ7YpwAA,15616
11
+ asgi_tools/middleware.py,sha256=cfhm7qxyw7I_5bOqRXxoQOSsUMU5OGq5FrGdv0P675M,15652
12
12
  asgi_tools/multipart.c,sha256=-2-QCBzX54BRopl_DL_1fnFPZ8cv3CYnQbzD6z-QuCw,863242
13
- asgi_tools/multipart.cp313-win_amd64.pyd,sha256=5DbNcYIrK1nT4s8IKchhDWEveIyQdDHl4uVHUQZcF38,100864
13
+ asgi_tools/multipart.cp313-win_amd64.pyd,sha256=6EhVT1OVpAVfMexVisMZ_42iNsFlpHJtqRAKHzoilK8,100864
14
14
  asgi_tools/multipart.pxd,sha256=C-I70NJjJXA_bYUAIDgf3K8f7aCn7Ttuzu_QxHz45Gk,759
15
15
  asgi_tools/multipart.py,sha256=ojkkDmcZH7T-AwbK8G4dNMdArVi4t-BcSxG0ubOt2aw,22296
16
16
  asgi_tools/multipart.pyx,sha256=MS2Gsp4mh_4LML-Qb24NWP2Fq5U8sSU7_NrO-awiSPM,22494
@@ -22,8 +22,8 @@ asgi_tools/tests.py,sha256=GxUaLUYHeyCNE8powBcJFjCAcEPMwK4dldsj6aElQxc,13349
22
22
  asgi_tools/types.py,sha256=TR1sdIw7RPd5ZmRnPfEuW5ztdAU-4qP0LHMdZQZm0YQ,957
23
23
  asgi_tools/utils.py,sha256=PlAx3prwfSxKG6W0e-8DMN0-aGyKfPu-BibxODcWE9Y,2923
24
24
  asgi_tools/view.py,sha256=hDbJ1zTvJkAGn7_-9vfqzESLzAyTxsRO8q-iossVRRw,1994
25
- asgi_tools-1.3.2.dist-info/licenses/LICENSE,sha256=NtZMr5jqCHVbUM1wX_U3F3XwMo881ao3rOevOirLocU,1091
26
- asgi_tools-1.3.2.dist-info/METADATA,sha256=JQcnZ9TfpkABBxxFld4AbtZGDn26jWGq1IBDzhl0KjI,7353
27
- asgi_tools-1.3.2.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
28
- asgi_tools-1.3.2.dist-info/top_level.txt,sha256=-6i6ebKuJ0cSaXJ3KWPmJLKUbmBE2UsuA2b7BcZMJSk,11
29
- asgi_tools-1.3.2.dist-info/RECORD,,
25
+ asgi_tools-1.3.3.dist-info/licenses/LICENSE,sha256=NtZMr5jqCHVbUM1wX_U3F3XwMo881ao3rOevOirLocU,1091
26
+ asgi_tools-1.3.3.dist-info/METADATA,sha256=oHIXbQepkN99zhVXe7z8FVvn7mDYpKOn6B6GDxHFB1g,7353
27
+ asgi_tools-1.3.3.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
28
+ asgi_tools-1.3.3.dist-info/top_level.txt,sha256=-6i6ebKuJ0cSaXJ3KWPmJLKUbmBE2UsuA2b7BcZMJSk,11
29
+ asgi_tools-1.3.3.dist-info/RECORD,,