mirror of
https://github.com/zedeus/nitter.git
synced 2025-03-04 10:01:24 +00:00
Return 403 on hmac error
This commit is contained in:
parent
81764ea0f8
commit
b43bfc5d42
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ proc createMediaRouter*(cfg: Config) =
|
|||
cond "http" in url
|
||||
|
||||
if getHmac(url) != request.matches[1]:
|
||||
resp showError("Failed to verify signature", cfg)
|
||||
resp Http403, showError("Failed to verify signature", cfg)
|
||||
|
||||
if ".mp4" in url or ".ts" in url or ".m4s" in url:
|
||||
let code = await proxyMedia(request, url)
|
||||
|
|
Loading…
Reference in a new issue