{{ message }}
Tags: webpy/webpy
Tags
Fix session.py to allow suppression of the cookie (#737) * Fix session.py to allow suppression of the cookie There are often endpoints/targets in your web.py app where you do not want to use sessions and most importantly, you do not want a Set-Cookie header sent with the response. The Set-Cookie header invalidates your Cache-Control directives when you are caching your responses with many CDNs. This PR allows you to do session.no_cookie=True in your handler to suppress the session cookie when you do not want it. * updates from code review * Update __init__.py * Update lint_python.yml * Update session.py * Update release.yml --------- Co-authored-by: Christian Clauss <cclauss@me.com>
Fixed the issue of len not working with the result of db query. (#554) * Fixed the issue of len not working with the result of db query. The earlier implentation was adding an __len__ function to the result object and that worked fine for old-style classes. With old-style classes gone in Python 3, that started giving trouble. Fixed it by writing a ResultSet class and a special SqliteResultSet which doesn't support len, but supports bool. Fixes #547. * cleanup of db tests.
PreviousNext
