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

Domain from request #149

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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'].

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