def ignore_headers(headers=('Range',), debug=False):
 request = cherrypy.serving.request
 for name in headers:
  if (name in request.headers):
   if debug:
    cherrypy.log(('Ignoring request header %r' % name), 'TOOLS.IGNORE_HEADERS')
   del request.headers[name]

def ignore_headers ( headers = ( 'Range' , ) , debug = False ) : request = cherrypy . serving . request for name in headers : if ( name in request . headers ) : if debug : cherrypy . log ( ( 'Ignoring request header %r' % name ) , 'TOOLS.IGNORE_HEADERS' ) del request . headers [ name ]
delete request headers whose field names are included in headers .