Skip to content

Commit 7af7135

Browse files
cgmark101defnull
authored andcommitted
docs: Fix typo in tutorial.rst
1 parent 7a7e544 commit 7af7135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Note that we used the ``:path`` route filter here to allow slash characters in `
276276

277277
The :func:`static_file` helper function has a lot of benefits compared to handling files manually. Most importantly it prevents `directory traversal attacks <https://owasp.org/www-community/attacks/Path_Traversal>`_ (e.g. ``GET /static/../../../../etc/secrets``) by restricting file access to the specified ``root`` directory. Make sure to use an absolut path for ``root``, though. Relative paths (staring with ``./``) are resolved against the current work directory which may not always be the same as your project directory.
278278

279-
The :func:`static_file` function returns :class:`HTTPResponse` or :class:`HTTPError`, which can be raied as an exception if you need to.
279+
The :func:`static_file` function returns :class:`HTTPResponse` or :class:`HTTPError`, which can be raised as an exception if you need to.
280280

281281
.. rubric:: File downloads
282282

0 commit comments

Comments
 (0)