Fixed unable to send bundle if path had spaces
This commit is contained in:
parent
fa76578880
commit
f991382d66
@ -22,7 +22,7 @@ export class BundleSerializer extends Serializer
|
|||||||
{
|
{
|
||||||
this.logger.info(`[BUNDLE]: ${req.url}`);
|
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);
|
const bundle = this.bundleLoader.getBundle(key);
|
||||||
|
|
||||||
this.httpFileUtil.sendFile(resp, `${bundle.modpath}/bundles/${bundle.filename}`);
|
this.httpFileUtil.sendFile(resp, `${bundle.modpath}/bundles/${bundle.filename}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user