Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Last active January 29, 2019 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylertreat/6b14aea5b7784b6b9b0605844f7cfc8a to your computer and use it in GitHub Desktop.
Save tylertreat/6b14aea5b7784b6b9b0605844f7cfc8a to your computer and use it in GitHub Desktop.
GCP OIDC proxy response
# Strip hop-by-hop headers and Content-Encoding.
headers = _strip_hop_by_hop_headers(resp.headers)
headers.pop('Content-Encoding', None)
return resp.content, resp.status_code, headers.items()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment