aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/HttpServer.hx')
-rw-r--r--src/server/HttpServer.hx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx
index 64962dc..2e69522 100644
--- a/src/server/HttpServer.hx
+++ b/src/server/HttpServer.hx
@@ -120,6 +120,7 @@ class HttpServer {
static function serveMedia(req:IncomingMessage, res:ServerResponse, filePath:String):Bool {
final range:String = req.headers["range"];
if (range == null) return false;
+ filePath = filePath.urlDecode();
if (!Fs.existsSync(filePath)) return false;
final videoSize = Fs.statSync(filePath).size;
// range example: "bytes=24182784-"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage