def _SanitizeHttpHeaders(self, untrusted_headers, headers):
    prohibited_headers = [h.key() for h in headers
                          if h.key().lower() in untrusted_headers]
    if prohibited_headers:
      logging.warn('Stripped prohibited headers from URLFetch request: %s',
                   prohibited_headers)
    return (h for h in headers if h.key().lower() not in untrusted_headers)
Cleans "unsafe" headers from the HTTP request/response.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/urlfetch_stub.py/URLFetchServiceStub._SanitizeHttpHeaders