Skip to content

Commit 718b916

Browse files
authored
Merge pull request #709 from cmu-delphi/add-header
Add header to async calls
2 parents a8138c6 + 7b07371 commit 718b916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/delphi_epidata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ async def async_make_calls(param_combos):
728728
"""Helper function to asynchronously make and aggregate Epidata GET requests."""
729729
tasks = []
730730
connector = TCPConnector(limit=batch_size)
731-
async with ClientSession(connector=connector) as session:
731+
async with ClientSession(connector=connector, headers=_HEADERS) as session:
732732
for param in param_combos:
733733
task = asyncio.ensure_future(async_get(param, session))
734734
tasks.append(task)

0 commit comments

Comments
 (0)