def _ignore_request_headers_rewriter(environ):
  """Ignore specific request headers.

  Certain request headers should not be sent to the application. This function
  removes those headers from the environment. For a complete list of these
  headers please see:

    https://developers.google.com/appengine/docs/python/runtime#Request_Headers

  Args:
    environ: An environ dict for the current request as defined in PEP-333.
  """
  for h in constants.IGNORED_REQUEST_HEADERS:
    h = 'HTTP_' + h.replace('-', '_').upper()
    try:
      del environ[h]
    except __HOLE__:
      pass


# A list of functions that take an environ and possibly modify it. The functions
# are applied to the request in order.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/request_rewriter.py/_ignore_request_headers_rewriter