Mercurial > p > roundup > code
view scripts/Docker/requirements.txt @ 8586:31a8a6faa2fa
bug: Allow UsageError exception to use more specific error code
UsageError exception returned 400 error code but should return 405
when generated for a bad http method.
Modified error handler to use 400 error code if self.response_code was
less then 400. This should reproduce the standard error of 400 if one
was not specified and preserve any other explicitly set response code.
Also enhanced a test case to verify the 405 is returned.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 20 Apr 2026 03:09:30 -0400 |
| parents | 2c59d8deb653 |
| children |
line wrap: on
line source
# Get newest versions, but specify minimum versions to get versions # without known vulnerabilities as reported by: # https://tools.simonwillison.net/python-vulnerability-lookup # setuptools required for installation - missing from newer base images setuptools >= 78.1.1 # human timezones pytz # indexer Whoosh # xapian is also installed # extra database support psycopg2 mysqlclient redis >= 4.5.4 # encryption gpg # java web tokens PyJWT >= 2.12.0 # extra HTTP compression methods Brotli >= 1.2.0 zstd >= 1.5.4 # jinja2 template engine Jinja2 >= 3.1.6
