Skip to content

bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has…#10638

Merged
benjaminp merged 6 commits into
python:masterfrom
PierreQuentel:fix-issue-20504
Sep 11, 2019
Merged

bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has…#10638
benjaminp merged 6 commits into
python:masterfrom
PierreQuentel:fix-issue-20504

Conversation

@PierreQuentel

@PierreQuentel PierreQuentel commented Nov 21, 2018

Copy link
Copy Markdown
Contributor

… no content-length header

https://bugs.python.org/issue20504

Comment thread Lib/test/test_cgi.py Outdated
}
fields = cgi.FieldStorage(fp, environ=env)

assert len(fields["my-arg"].file.read()) == 5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unittest.TestCase methods (like assertEqual()) should be used instead of raw asserts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done in commit d67919b

@benjaminp
benjaminp merged commit 2d7caca into python:master Sep 11, 2019
@bedevere-bot

Copy link
Copy Markdown

@benjaminp: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @PierreQuentel for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 11, 2019
pythonGH-10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7caca)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15919 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 11, 2019
pythonGH-10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7caca)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15920 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Sep 11, 2019
GH-10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7caca)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
miss-islington added a commit that referenced this pull request Sep 11, 2019
GH-10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7caca)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
DinoV pushed a commit to DinoV/cpython that referenced this pull request Sep 12, 2019
python#10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
python#10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants