Explorar el Código

Return 403 on hmac error

Zed hace 1 año
padre
commit
b43bfc5d42
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/routes/media.nim

+ 1 - 1
src/routes/media.nim

@@ -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)