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
36e57a07
Commit
36e57a07
authored
Jun 12, 2002
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed NameError in appendHeader, reported on list.
parent
d83096f4
Changes
1
Show 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 @
36e57a07
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
'''CGI Response Output formatter
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.6
0 2002/04/15 20:58:2
8 Brian Exp $'''
$Id: HTTPResponse.py,v 1.6
1 2002/06/12 19:06:3
8 Brian Exp $'''
__version__
=
'$Revision: 1.6
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
1
$'
[
11
:
-
2
]
import
types
,
os
,
sys
,
re
import
types
,
os
,
sys
,
re
from
string
import
translate
,
maketrans
from
string
import
translate
,
maketrans
...
@@ -381,14 +381,14 @@ class HTTPResponse(BaseResponse):
...
@@ -381,14 +381,14 @@ class HTTPResponse(BaseResponse):
def
appendHeader
(
self
,
name
,
value
,
delimiter
=
","
):
def
appendHeader
(
self
,
name
,
value
,
delimiter
=
","
):
'''
\
'''
\
Append a value to a
cookie
Append a value to a
header.
Sets an HTTP return header "name" with value "value",
Sets an HTTP return header "name" with value "value",
appending it following a comma if there was a previous value
appending it following a comma if there was a previous value
set for the header. '''
set for the header. '''
headers
=
self
.
headers
headers
=
self
.
headers
if
headers
.
has_key
(
name
):
if
headers
.
has_key
(
name
):
h
=
self
.
header
[
name
]
h
=
headers
[
name
]
h
=
"%s%s
\
n
\
t
%s"
%
(
h
,
delimiter
,
value
)
h
=
"%s%s
\
n
\
t
%s"
%
(
h
,
delimiter
,
value
)
else
:
h
=
value
else
:
h
=
value
self
.
setHeader
(
name
,
h
)
self
.
setHeader
(
name
,
h
)
...
...
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