Kaydet (Commit) b7ad1eb2 authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization broke test_cgi, because a line

of quoted test data relied on preserving a single trailing
blank.  Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.
üst 0d9ca9fa
...@@ -241,7 +241,7 @@ def main(): ...@@ -241,7 +241,7 @@ def main():
print "Test basic FieldStorage multipart parsing" print "Test basic FieldStorage multipart parsing"
env = {'REQUEST_METHOD':'POST', 'CONTENT_TYPE':'multipart/form-data; boundary=---------------------------721837373350705526688164684', 'CONTENT_LENGTH':'558'} env = {'REQUEST_METHOD':'POST', 'CONTENT_TYPE':'multipart/form-data; boundary=---------------------------721837373350705526688164684', 'CONTENT_LENGTH':'558'}
postdata = r"""-----------------------------721837373350705526688164684 postdata = """-----------------------------721837373350705526688164684
Content-Disposition: form-data; name="id" Content-Disposition: form-data; name="id"
1234 1234
...@@ -258,7 +258,7 @@ Testing 123. ...@@ -258,7 +258,7 @@ Testing 123.
-----------------------------721837373350705526688164684 -----------------------------721837373350705526688164684
Content-Disposition: form-data; name="submit" Content-Disposition: form-data; name="submit"
Add Add\x20
-----------------------------721837373350705526688164684-- -----------------------------721837373350705526688164684--
""" """
fs = cgi.FieldStorage(fp=StringIO(postdata), environ=env) fs = cgi.FieldStorage(fp=StringIO(postdata), environ=env)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment