Fix video endpoint not closing client

このコミットが含まれているのは:
Zed 2019-08-13 19:45:02 +02:00
コミット 0b52f4963c
1個のファイルの変更3行の追加4行の削除

ファイルの表示

@ -184,11 +184,10 @@ routes:
if getHmac(url) != @"sig":
resp showError("Failed to verify signature", cfg.title, prefs)
let
client = newAsyncHttpClient()
video = await client.getContent(url)
let client = newAsyncHttpClient()
let video = await client.getContent(url)
client.close()
defer: client.close()
resp video, mimetype(url)
runForever()