HomeSoftware Heritage

Fix #140: Don't expect 'wsgi.input' to have 'seek' method

Description

Fix #140: Don't expect 'wsgi.input' to have 'seek' method

The WSGI specification does not require 'wsgi.input' to have a 'seek'
method. However, the gunzipping code in the standard library of Python
2.x uses that method. We work around this by buffering data from a
'wsgi.input' that lacks this method into a temporary file.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>

Details

Provenance
Jonas Haag <jonas@lophus.org>Authored on Mar 7 2014, 2:23 PM
jelmerCommitted on Mar 7 2014, 8:45 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDWccd0fac9d397: _compat: Fix some lint.
Branches
Unknown
Tags
Unknown

Event Timeline