Skip to content

Commit 4bffa0c

Browse files
yecril23plKludex
andauthored
doc: A file parameter is not a field (#127)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
1 parent 6f3295b commit 4bffa0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def simple_app(environ, start_response):
1616

1717
# The following two callbacks just append the name to the return value.
1818
def on_field(field):
19-
ret.append(b"Parsed field named: %s" % (field.field_name,))
19+
ret.append(b"Parsed value parameter named: %s" % (field.field_name,))
2020

2121
def on_file(file):
22-
ret.append(b"Parsed file named: %s" % (file.field_name,))
22+
ret.append(b"Parsed file parameter named: %s" % (file.field_name,))
2323

2424
# Create headers object. We need to convert from WSGI to the actual
2525
# 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
5555
Server: WSGIServer/0.1 Python/2.7.3
5656
Content-type: text/plain
5757

58-
Parsed field named: foo
58+
Parsed value parameter named: foo
5959
```
6060

6161
For a more in-depth example showing how the various parts fit together, check out the next section.

0 commit comments

Comments
 (0)