

def get_env_to_hide_service_bridge(wsgi_env):
    'Generate a dictionary of environment variables to hide the service\n    bridge.\n\n    Does not mutate input.\n\n    Args:\n        wsgi_env: WSGI request env data.\n\n    Returns:\n        A dictionary suitable for use in `os.environ.update(output)`.\n    '
    output = {
        
    }
    http_host = wsgi_env.get('HTTP_HOST', None)
    if http_host:
        output['SERVER_NAME'] = http_host
    https = wsgi_env.get('HTTP_X_APPENGINE_HTTPS', 'off')
    if (https == 'off'):
        output['SERVER_PORT'] = '80'
    elif (output == 'on'):
        output['SERVER_PORT'] = '443'
    else:
        logging.warning("Unrecognized value for HTTPS (%s), won't modify SERVER_PORT", https)
    return output

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-vmruntime/vmruntime/middleware.py get_env_to_hide_service_bridge/VarMisuse@73/217 `https`->`output`