summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Sadek <esadek@users.noreply.github.com>2021-06-06 04:30:04 -0700
committerMarcel Hellkamp <marc@gsites.de>2021-07-07 13:39:42 +0200
commit71bb933649ba009cd537c2e973519d6e024c02a2 (patch)
treed5a67edbcfe014e662d4ab64920377908fab5b4a
parentd1413a81ead7a6f130a06e21a17ca98f4ea30df6 (diff)
downloadbottle-71bb933649ba009cd537c2e973519d6e024c02a2.tar.gz
Fix title case
Change capitalization to title case for consistency.
-rwxr-xr-xdocs/tutorial.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index 2bc0465..11eec78 100755
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -627,7 +627,7 @@ Attribute GET Form fields POST Form fields File Uploa
============================== =============== ================ ============
-File uploads
+File Uploads
------------
To support file uploads, we have to change the ``<form>`` tag a bit. First, we tell the browser to encode the form data in a different way by adding an ``enctype="multipart/form-data"`` attribute to the ``<form>`` tag. Then, we add ``<input type="file" />`` tags to allow the user to select a file. Here is an example:
@@ -665,7 +665,7 @@ JSON Content
Some JavaScript or REST clients send ``application/json`` content to the server. The :attr:`BaseRequest.json` attribute contains the parsed data structure, if available.
-The raw request body
+The Raw Request Body
--------------------
You can access the raw body data as a file-like object via :attr:`BaseRequest.body`. This is a :class:`BytesIO` buffer or a temporary file depending on the content length and :attr:`BaseRequest.MEMFILE_MAX` setting. In both cases the body is completely buffered before you can access the attribute. If you expect huge amounts of data and want to get direct unbuffered access to the stream, have a look at ``request['wsgi.input']``.