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
ec3dfdee
Commit
ec3dfdee
authored
Jul 04, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only write out one blank line before the request data.
This closes SF patch #419459.
parent
d153a980
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/urllib.py
Lib/urllib.py
+2
-2
Lib/urllib2.py
Lib/urllib2.py
+1
-1
No files found.
Lib/urllib.py
View file @
ec3dfdee
...
...
@@ -286,7 +286,7 @@ class URLopener:
for
args
in
self
.
addheaders
:
apply
(
h
.
putheader
,
args
)
h
.
endheaders
()
if
data
is
not
None
:
h
.
send
(
data
+
'
\
r
\
n
'
)
h
.
send
(
data
)
errcode
,
errmsg
,
headers
=
h
.
getreply
()
fp
=
h
.
getfile
()
if
errcode
==
200
:
...
...
@@ -364,7 +364,7 @@ class URLopener:
for
args
in
self
.
addheaders
:
apply
(
h
.
putheader
,
args
)
h
.
endheaders
()
if
data
is
not
None
:
h
.
send
(
data
+
'
\
r
\
n
'
)
h
.
send
(
data
)
errcode
,
errmsg
,
headers
=
h
.
getreply
()
fp
=
h
.
getfile
()
if
errcode
==
200
:
...
...
Lib/urllib2.py
View file @
ec3dfdee
...
...
@@ -809,7 +809,7 @@ class AbstractHTTPHandler(BaseHandler):
h
.
putheader
(
k
,
v
)
h
.
endheaders
()
if
req
.
has_data
():
h
.
send
(
data
+
'
\
r
\
n
'
)
h
.
send
(
data
)
code
,
msg
,
hdrs
=
h
.
getreply
()
fp
=
h
.
getfile
()
...
...
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