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
111d3cc0
Commit
111d3cc0
authored
Jan 19, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by Tim O'Malley for servers that send a response looking just like
HTTP/1.x 200 instead of HTTP/1.x 200 OK
parent
4a4f3b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/httplib.py
Lib/httplib.py
+6
-2
No files found.
Lib/httplib.py
View file @
111d3cc0
...
...
@@ -123,8 +123,12 @@ class HTTP:
try
:
[
ver
,
code
,
msg
]
=
string
.
split
(
line
,
None
,
2
)
except
ValueError
:
self
.
headers
=
None
return
-
1
,
line
,
self
.
headers
try
:
[
ver
,
code
]
=
string
.
split
(
line
,
None
,
1
)
msg
=
""
except
ValueError
:
self
.
headers
=
None
return
-
1
,
line
,
self
.
headers
if
ver
[:
5
]
!=
'HTTP/'
:
self
.
headers
=
None
return
-
1
,
line
,
self
.
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