~ubuntu-branches/debian/jessie/cherrypy3/jessie

« back to all changes in this revision

Viewing changes to cherrypy/lib/static.py

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-08-15 14:52:43 UTC
  • mfrom: (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090815145243-ydtmn7e0vejt4r3l
* New upstream release (Closes: #528473)
* debian/rules:
- use the quilt make include file instead of using custom code; should
  make the package convertable to the new quilt source format
  (Closes: #538677)
* debian/control:
- updated Standards-Version with no changes
* debian/python-cherrypy3.links:
- fix link to point to the new place where python-support installs files

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
    '/home/me', the Request-URI is 'myapp', and the index arg is
168
168
    'index.html', the file '/home/me/myapp/index.html' will be sought.
169
169
    """
 
170
    if cherrypy.request.method not in ('GET', 'HEAD'):
 
171
        return False
 
172
    
170
173
    if match and not re.search(match, cherrypy.request.path_info):
171
174
        return False
172
175
    
217
220
    a string (e.g. "gif") and 'content-type' is the value to write
218
221
    out in the Content-Type response header (e.g. "image/gif").
219
222
    """
 
223
    if cherrypy.request.method not in ('GET', 'HEAD'):
 
224
        return False
 
225
    
220
226
    if match and not re.search(match, cherrypy.request.path_info):
221
227
        return False
222
228