Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a925db54
Commit
a925db54
authored
Mar 18, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a fix required because IE5 is too stupid to know that 204 means success.
parent
45721730
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+4
-4
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
a925db54
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
'''CGI Response Output formatter
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.
6 1999/03/11 14:28:24
brian Exp $'''
$Id: HTTPResponse.py,v 1.
7 1999/03/18 20:16:59
brian Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
import
string
,
types
,
sys
,
regex
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
@@ -630,8 +630,8 @@ class HTTPResponse(BaseResponse):
...
@@ -630,8 +630,8 @@ class HTTPResponse(BaseResponse):
self
.
setBody
(
body
)
self
.
setBody
(
body
)
body
=
self
.
body
body
=
self
.
body
if
not
headers
.
has_key
(
'content-type'
)
and
self
.
status
==
200
:
#
if not headers.has_key('content-type') and self.status == 200:
self
.
setStatus
(
'nocontent'
)
#
self.setStatus('nocontent')
if
not
headers
.
has_key
(
'content-length'
):
if
not
headers
.
has_key
(
'content-length'
):
self
.
setHeader
(
'content-length'
,
len
(
body
))
self
.
setHeader
(
'content-length'
,
len
(
body
))
...
...
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