Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1491

Show
Ignore:
Timestamp:
12/09/06 13:50:06
Author:
fumanchu
Message:

2.x backport of [1109] (Comment improvements).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/_cpengine.py

    r1487 r1491  
    154154         
    155155        clientAddress: the (IP address, port) of the client 
    156         remoteHost: the IP address of the client 
     156        remoteHost: should be the client's host name. If not available 
     157            (because no reverse DNS lookup is performed), the client 
     158            IP should be provided. 
    157159        scheme: either "http" or "https"; defaults to "http" 
    158160        """ 
  • branches/cherrypy-2.x/cherrypy/_cphttptools.py

    r1487 r1491  
    2020        remoteAddr should be the client IP address 
    2121        remotePort should be the client Port 
    22         remoteHost should be string of the client's IP address. 
     22        remoteHost: should be the client's host name. If not available 
     23            (because no reverse DNS lookup is performed), the client 
     24            IP should be provided. 
    2325        scheme should be a string, either "http" or "https". 
    2426        """ 
     
    4648        requestLine should be of the form "GET /path HTTP/1.0". 
    4749        headers should be a list of (name, value) tuples. 
    48         rfile should be a file-like object containing the HTTP request 
    49             entity. 
     50        rfile should be a file-like object containing the HTTP request entity. 
    5051         
    5152        When run() is done, the returned object should have 3 attributes: 
  • branches/cherrypy-2.x/cherrypy/_cpwsgi.py

    r1486 r1491  
    6060    request = None 
    6161    try: 
     62        env = environ.get 
     63        clientAddr = (env('REMOTE_ADDR', ''), int(env('REMOTE_PORT', -1))) 
     64        request = cherrypy.server.request(clientAddr, '', environ['wsgi.url_scheme']) 
     65         
    6266        # LOGON_USER is served by IIS, and is the name of the 
    6367        # user after having been mapped to a local account. 
    6468        # Both IIS and Apache set REMOTE_USER, when possible. 
    65         env = environ.get 
    66         clientAddr = (env('REMOTE_ADDR', ''), int(env('REMOTE_PORT', -1))) 
    67         request = cherrypy.server.request(clientAddr, '', environ['wsgi.url_scheme']) 
    6869        request.login = (env('LOGON_USER') or env('REMOTE_USER') or None) 
     70         
    6971        request.multithread = environ['wsgi.multithread'] 
    7072        request.multiprocess = environ['wsgi.multiprocess'] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets