decode req.path during export

This commit is contained in:
Rich Harris
2018-09-03 09:02:13 -04:00
parent 499b377bfd
commit 0706b5f50a
3 changed files with 11 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ async function execute(emitter: EventEmitter, opts: Opts) {
function save(path: string, status: number, type: string, body: string) {
const { pathname } = resolve(origin, path);
let file = pathname.slice(1);
let file = decodeURIComponent(pathname.slice(1));
if (saved.has(file)) return;
saved.add(file);