docs/changes/3.1.2.rst
.. falcon-release: 2023-12-04
This is a minor point release fixing a couple of high impact bugs, as well as publishing binary wheels for the recently released CPython 3.12.
sdist tarball should now be usable as a base
for packaging Falcon in OS distributions. (#2051 <https://github.com/falconry/falcon/issues/2051>__)WebSocket <ws> implementation has been fixed to properly handle
:class:~falcon.HTTPError and :class:~falcon.HTTPStatus exceptions raised by
custom :func:error handlers <falcon.asgi.App.add_error_handler>.
The WebSocket connection is now correctly closed with an appropriate code
instead of bubbling up an unhandled error to the application server. (#2146 <https://github.com/falconry/falcon/issues/2146>__)~falcon.testing.TestClient mimics the behavior of real WSGI
servers (and the WSGI spec) by presenting the PATH_INFO CGI variable
already in the percent-decoded form. However, the client also used to
indiscriminately set the non-standard RAW_URI CGI variable to /, which
made writing tests for apps :ref:decoding raw URL path <raw_url_path_recipe>
cumbersome. This has been fixed, and the raw path of a simulated request is now
preserved in RAW_URI. (#2157 <https://github.com/falconry/falcon/issues/2157>__)Many thanks to those who contributed to this bugfix release:
CaselIT <https://github.com/CaselIT>__kgriffs <https://github.com/kgriffs>__liborjelinek <https://github.com/liborjelinek>__vytas7 <https://github.com/vytas7>__