Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ac34e09b
Commit
ac34e09b
authored
Nov 14, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct Content-Type syntax in documentation
parent
06622ead
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
Lib/http/cookiejar.py
Lib/http/cookiejar.py
+4
-4
No files found.
Doc/library/urllib.request.rst
View file @
ac34e09b
...
...
@@ -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`::
...
...
Lib/http/cookiejar.py
View file @
ac34e09b
...
...
@@ -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 = []
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment