Fix packet capture

This commit is contained in:
grossmj committed 2021-12-02 18:07:09 +10:30
1 parent 928966ea5f
commit 8bae921587
3 files changed
+11 -4

No files matched your search

+8 -1
View File
@@ -198,7 +198,14 @@ async def stream_pcap(request: Request, link: Link = Depends(dep_link)) -> Strea
async def compute_pcap_stream():
try:
async with HTTPClient.request(request.method, pcap_streaming_url, timeout=None, data=body) as response:
async with HTTPClient.request(
request.method,
pcap_streaming_url,
user=compute.user,
password=compute.password,
timeout=None,
data=body
) as response:
async for data in response.content.iter_any():
if not data:
break