diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-14 00:58:32 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-14 00:58:32 (GMT) |
commit | ac34e09bbfe59e0d2075be7db317b91da6ca2c69 (patch) | |
tree | ea33de5931ff9ebc7543f6b9508f6cc28f28ce85 | |
parent | 06622ead8072f3602bba8cd1924f0897873ad8b1 (diff) | |
download | cpython-ac34e09bbfe59e0d2075be7db317b91da6ca2c69.zip cpython-ac34e09bbfe59e0d2075be7db317b91da6ca2c69.tar.gz cpython-ac34e09bbfe59e0d2075be7db317b91da6ca2c69.tar.bz2 |
Correct Content-Type syntax in documentation
-rw-r--r-- | Doc/library/urllib.request.rst | 2 | ||||
-rw-r--r-- | Lib/http/cookiejar.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 74f3c1f..4df0f56 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1107,7 +1107,7 @@ The code for the sample CGI used in the above example is:: #!/usr/bin/env python import sys data = sys.stdin.read() - print('Content-type: text-plain\n\nGot Data: "%s"' % data) + print('Content-type: text/plain\n\nGot Data: "%s"' % data) Here is an example of doing a ``PUT`` request using :class:`Request`:: diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index dbd34d2..cad6b3a 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -423,10 +423,10 @@ def join_header_words(lists): Takes a list of lists of (key, value) pairs and produces a single header value. Attribute values are quoted if needed. - >>> join_header_words([[("text/plain", None), ("charset", "iso-8859/1")]]) - 'text/plain; charset="iso-8859/1"' - >>> join_header_words([[("text/plain", None)], [("charset", "iso-8859/1")]]) - 'text/plain, charset="iso-8859/1"' + >>> join_header_words([[("text/plain", None), ("charset", "iso-8859-1")]]) + 'text/plain; charset="iso-8859-1"' + >>> join_header_words([[("text/plain", None)], [("charset", "iso-8859-1")]]) + 'text/plain, charset="iso-8859-1"' """ headers = [] |