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

Update SessionMiddleware and TrustedHostMiddleware Documentation #2572

Merged
merged 2 commits into from Apr 15, 2024

Conversation

soulee-dev
Copy link
Contributor

Summary

This PR updates the documentation for SessionMiddleware and TrustedHostMiddleware to reflect the current code more accurately.

Changes

  1. SessionMiddleware:
  • Added documentation for the path parameter which specifies the path set for the session cookie. It defaults to "/".
  1. TrustedHostMiddleware:
  • Added documentation for the www_redirect parameter. When set to True, this option redirects requests to non-www versions of allowed hosts to their www counterparts. This parameter defaults to True.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

@Kludex
Copy link
Sponsor Member

Kludex commented Apr 15, 2024

Thanks! :)

@Kludex Kludex merged commit eb76cae into encode:master Apr 15, 2024
5 checks passed
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.

None yet

2 participants