Skip to content

Commit

Permalink
Merge pull request #635 from w3c/local-path-fix
Browse files Browse the repository at this point in the history
the local server no longer needs BASE_URI
  • Loading branch information
deniak authored Feb 5, 2024
2 parents d636813 + 27e08ee commit 690b028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ app.get(
response.body.pipe(createWriteStream(`${uploadPath}/${name}`));
});

const baseUrl = `${req.protocol}://${req.get("host")}/${BASE_URI}`;
const baseUrl = `${req.protocol}://${req.get("host")}/`;
const newPath = url.replace(baseRegex, `${uploadPath}/`);
req.query.url = `${baseUrl}${newPath}${specURL.search}`;
req.tmpDir = uploadPath;
Expand Down

0 comments on commit 690b028

Please sign in to comment.