Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update SessionMiddleware and TrustedHostMiddleware Documentation#2572

Merged
Kludex merged 2 commits into
Kludex:masterfrom
soulee-dev:master
Apr 15, 2024
Merged

Update SessionMiddleware and TrustedHostMiddleware Documentation#2572
Kludex merged 2 commits into
Kludex:masterfrom
soulee-dev:master

Conversation

@soulee-dev

Copy link
Copy Markdown
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

Kludex commented Apr 15, 2024

Copy link
Copy Markdown
Owner

Thanks! :)

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.

2 participants