X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=python3%2Fashd-wsgi3;h=8944b5ce1fe9bc2a30aef9427ab36e25b2063596;hb=1af656d2284a5f51631ae11ee9fa068af5c1ccc4;hp=dcf161320bf78805929d7207f719ba08d8eb6111;hpb=2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1;p=ashd.git diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index dcf1613..8944b5c 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -131,9 +131,10 @@ def dowsgi(req): name = "" env["SCRIPT_NAME"] = name env["PATH_INFO"] = pi - for src, tgt in [("HTTP_HOST", "SERVER_NAME"), ("HTTP_X_ASH_SERVER_PORT", "SERVER_PORT"), - ("HTTP_X_ASH_ADDRESS", "REMOTE_ADDR"), ("HTTP_CONTENT_TYPE", "CONTENT_TYPE"), - ("HTTP_CONTENT_LENGTH", "CONTENT_LENGTH"), ("HTTP_X_ASH_PROTOCOL", "wsgi.url_scheme")]: + for src, tgt in [("HTTP_HOST", "SERVER_NAME"), ("HTTP_X_ASH_PROTOCOL", "wsgi.url_scheme"), + ("HTTP_X_ASH_SERVER_ADDRESS", "SERVER_ADDR"), ("HTTP_X_ASH_SERVER_PORT", "SERVER_PORT"), + ("HTTP_X_ASH_ADDRESS", "REMOTE_ADDR"), ("HTTP_X_ASH_PORT", "REMOTE_PORT"), + ("HTTP_CONTENT_TYPE", "CONTENT_TYPE"), ("HTTP_CONTENT_LENGTH", "CONTENT_LENGTH")]: if src in env: env[tgt] = env[src] for key in ["HTTP_CONTENT_TYPE", "HTTP_CONTENT_LENGTH"]: # The CGI specification does not strictly require this, but