mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix video endpoint not closing client
This commit is contained in:
parent
966b3d5d62
commit
0b52f4963c
1 changed files with 3 additions and 4 deletions
|
@ -184,11 +184,10 @@ routes:
|
||||||
if getHmac(url) != @"sig":
|
if getHmac(url) != @"sig":
|
||||||
resp showError("Failed to verify signature", cfg.title, prefs)
|
resp showError("Failed to verify signature", cfg.title, prefs)
|
||||||
|
|
||||||
let
|
let client = newAsyncHttpClient()
|
||||||
client = newAsyncHttpClient()
|
let video = await client.getContent(url)
|
||||||
video = await client.getContent(url)
|
client.close()
|
||||||
|
|
||||||
defer: client.close()
|
|
||||||
resp video, mimetype(url)
|
resp video, mimetype(url)
|
||||||
|
|
||||||
runForever()
|
runForever()
|
||||||
|
|
Loading…
Reference in a new issue