Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/wsgiref/util.py

    r2 r391  
    3333        raise StopIteration
    3434
    35 
    36 
    37 
    38 
    39 
    40 
    41 
    4235def guess_scheme(environ):
    4336    """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
     
    7265    url = application_uri(environ)
    7366    from urllib import quote
    74     path_info = quote(environ.get('PATH_INFO',''))
     67    path_info = quote(environ.get('PATH_INFO',''),safe='/;=,')
    7568    if not environ.get('SCRIPT_NAME'):
    7669        url += path_info[1:]
     
    162155
    163156
    164 
    165157_hoppish = {
    166158    'connection':1, 'keep-alive':1, 'proxy-authenticate':1,
     
    172164    """Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
    173165    return _hoppish(header_name.lower())
    174 
    175 
    176 
    177 
    178 
    179 
    180 
    181 
    182 
    183 
    184 
    185 
    186 
    187 
    188 
    189 
    190 
    191 
    192 
    193 
    194 
    195 
    196 
    197 
    198 
    199 
    200 
    201 
    202 
    203 
    204 
    205 #
Note: See TracChangeset for help on using the changeset viewer.