Skip to content

Instantly share code, notes, and snippets.

@klen
Created December 15, 2015 16:36
Show Gist options
  • Save klen/feb8721a14e9c46af1c3 to your computer and use it in GitHub Desktop.
Save klen/feb8721a14e9c46af1c3 to your computer and use it in GitHub Desktop.
from aiohttp import CIMultiDict
# ... somewhere ...
request._headers = CIMultiDict(MY_CUSTOM_HEADER='VALUE HERE', MY_OTHER_CUSTOM_HEADER='VALUE HERE', **request.headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment