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
d93d4977
Commit
d93d4977
authored
Sep 02, 2006
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed functional.http to only pass the request body (no headers) to
publish_module. Thanks to Andreas Zeidler.
parent
81060b9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
+2
-0
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
+5
-1
No files found.
lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
View file @
d93d4977
...
...
@@ -9,6 +9,8 @@ Zope 2.8 edition
- Made sure logging is configured. Read $INSTANCE_HOME/log.ini if it exists.
- Made base.TestCase a new-style class.
- Added placeless.py for Z3-style setup. Thanks to Whit Morriss.
- Fixed functional.http to only pass the request body (no headers) to
publish_module. Thanks to Andreas Zeidler.
0.9.8 (Zope 2.8 edition)
- Renamed 'doctest' package to 'zopedoctest' because of name-shadowing
...
...
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
View file @
d93d4977
...
...
@@ -132,7 +132,7 @@ def http(request_string, handle_errors=True):
# Discard leading white space to make call layout simpler
request_string = request_string.lstrip()
#
s
plit off and parse the command line
#
S
plit off and parse the command line
l = request_string.find('
\
n
')
command_line = request_string[:l].rstrip()
request_string = request_string[l+1:]
...
...
@@ -162,6 +162,10 @@ def http(request_string, handle_errors=True):
headers = [split_header(header)
for header in rfc822.Message(instream).headers]
# Store request body without headers
instream = StringIO(instream.read())
for name, value in headers:
name = ('
_
'.join(name.upper().split('
-
')))
if name not in ('
CONTENT_TYPE
', '
CONTENT_LENGTH
'):
...
...
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