From f991382d664f346d5edb8ee94eee5b46ffd1d8d4 Mon Sep 17 00:00:00 2001 From: TheSparta Date: Mon, 6 May 2024 21:53:30 +0100 Subject: [PATCH] Fixed unable to send bundle if path had spaces --- project/src/routers/serializers/BundleSerializer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/routers/serializers/BundleSerializer.ts b/project/src/routers/serializers/BundleSerializer.ts index df8c8866..a12c51e3 100644 --- a/project/src/routers/serializers/BundleSerializer.ts +++ b/project/src/routers/serializers/BundleSerializer.ts @@ -22,7 +22,7 @@ export class BundleSerializer extends Serializer { this.logger.info(`[BUNDLE]: ${req.url}`); - const key = req.url.split("/bundle/")[1]; + const key = decodeURI(req.url.split("/bundle/")[1]); const bundle = this.bundleLoader.getBundle(key); this.httpFileUtil.sendFile(resp, `${bundle.modpath}/bundles/${bundle.filename}`);