def eff_request_host(request):
    erhn = req_host = request_host(request)
    if req_host.find(".") == -1 and not IPV4_RE.search(req_host):
        erhn = req_host + ".local"
    return req_host, erhn
Return a tuple (request-host, effective request-host name).
dataset/ETHPy150Open babble/babble/include/jython/Lib/cookielib.py/eff_request_host