Skip to content

Commit 7b07371

Browse files
committed
Add header to async calls
1 parent a8138c6 commit 7b07371

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)