Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Domain from request#149

Open
Mark-Hetherington wants to merge 3 commits intoGoogleCloudPlatform:masterfrom
Mark-Hetherington:domain-from-request
Open

Domain from request#149
Mark-Hetherington wants to merge 3 commits intoGoogleCloudPlatform:masterfrom
Mark-Hetherington:domain-from-request

Conversation

@Mark-Hetherington
Copy link

The "SERVER_NAME" environment variable seems to be set to an IP address in several environments (paste.httpserver, waitress.serve). But it seems request.domain is set in webob.Request, based on request.host, which preferences environ['HTTP_HOST'] over environ['SERVER_NAME'].

Mark Hetherington added 3 commits September 17, 2019 16:46
Otherwise we get a repr style <str>'b\'<content>\''
On paste.httpserver SERVER_NAME is 127.0.0.1, on waitress SERVER_NAME is local machine name.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants