Skip to content

Commit 690b028

Browse files
authored
Merge pull request #635 from w3c/local-path-fix
the local server no longer needs BASE_URI
2 parents d636813 + 27e08ee commit 690b028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ app.get(
147147
response.body.pipe(createWriteStream(`${uploadPath}/${name}`));
148148
});
149149

150-
const baseUrl = `${req.protocol}://${req.get("host")}/${BASE_URI}`;
150+
const baseUrl = `${req.protocol}://${req.get("host")}/`;
151151
const newPath = url.replace(baseRegex, `${uploadPath}/`);
152152
req.query.url = `${baseUrl}${newPath}${specURL.search}`;
153153
req.tmpDir = uploadPath;

0 commit comments

Comments
 (0)