From 4bffa0c7c6c836ace85486b95c1e144e340059d8 Mon Sep 17 00:00:00 2001 From: yecril23pl <151100823+yecril23pl@users.noreply.github.com> Date: Fri, 6 Dec 2024 08:15:24 +0100 Subject: [PATCH] doc: A file parameter is not a field (#127) Co-authored-by: Marcelo Trylesinski --- docs/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 7802011..c84bb99 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,10 +16,10 @@ def simple_app(environ, start_response): # The following two callbacks just append the name to the return value. def on_field(field): - ret.append(b"Parsed field named: %s" % (field.field_name,)) + ret.append(b"Parsed value parameter named: %s" % (field.field_name,)) def on_file(file): - ret.append(b"Parsed file named: %s" % (file.field_name,)) + ret.append(b"Parsed file parameter named: %s" % (file.field_name,)) # Create headers object. We need to convert from WSGI to the actual # name of the header, since this library does not assume that you are @@ -55,7 +55,7 @@ Date: Sun, 07 Apr 2013 01:40:52 GMT Server: WSGIServer/0.1 Python/2.7.3 Content-type: text/plain -Parsed field named: foo +Parsed value parameter named: foo ``` For a more in-depth example showing how the various parts fit together, check out the next section.