Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically set SERVER_NAME from the value of ckan.site_url. This is needed so Flask is able to generate fully qualified URLs with _external=True. One major thing to note is that when SERVER_NAME is set up the incoming request `Host` header (`HTTP_HOST` in the WSGI environ) must match its value, otherwise the Flask router will return a 404 even if the route has been defined. That's why we had to modify 1. The environ sent during the WSGI party invite requests 2. The environ sent with the test webtest app in tests
- Loading branch information
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters