Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Sep 11, 2019
Merged

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

merged 6 commits into from
Sep 11, 2019

Conversation

PierreQuentel
Copy link
Contributor

@PierreQuentel PierreQuentel commented Nov 21, 2018

… no content-length header

https://bugs.python.org/issue20504

}
fields = cgi.FieldStorage(fp, environ=env)

assert len(fields["my-arg"].file.read()) == 5
Copy link
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
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

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

@miss-islington
Copy link
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

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

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