Fixed unable to send bundle if path had spaces

This commit is contained in:
TheSparta 2024-05-06 21:53:30 +01:00
parent fa76578880
commit f991382d66

View File

@ -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}`);