From 7af7135965e6e02993fea89d8932a4bc713b6692 Mon Sep 17 00:00:00 2001 From: cgmark101 Date: Mon, 28 Oct 2024 16:53:55 -0400 Subject: [PATCH] docs: Fix typo in tutorial.rst --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index af7c53c4..40d941ed 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -276,7 +276,7 @@ Note that we used the ``:path`` route filter here to allow slash characters in ` The :func:`static_file` helper function has a lot of benefits compared to handling files manually. Most importantly it prevents `directory traversal attacks `_ (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. -The :func:`static_file` function returns :class:`HTTPResponse` or :class:`HTTPError`, which can be raied as an exception if you need to. +The :func:`static_file` function returns :class:`HTTPResponse` or :class:`HTTPError`, which can be raised as an exception if you need to. .. rubric:: File downloads