Changeset 391 for python/trunk/Lib/wsgiref/util.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/wsgiref/util.py
r2 r391 33 33 raise StopIteration 34 34 35 36 37 38 39 40 41 42 35 def guess_scheme(environ): 43 36 """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https' … … 72 65 url = application_uri(environ) 73 66 from urllib import quote 74 path_info = quote(environ.get('PATH_INFO','') )67 path_info = quote(environ.get('PATH_INFO',''),safe='/;=,') 75 68 if not environ.get('SCRIPT_NAME'): 76 69 url += path_info[1:] … … 162 155 163 156 164 165 157 _hoppish = { 166 158 'connection':1, 'keep-alive':1, 'proxy-authenticate':1, … … 172 164 """Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header""" 173 165 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.