Skip to content

Commit

Permalink
fix: file path
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Nov 25, 2024
1 parent 03c2506 commit 031fb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class HttpCommand extends Command {
return a.filename.toLowerCase() < b.filename.toLowerCase() ? -1 : 1;
});
files.forEach(f => {
htmlContent += `<li><a href="./${f.filename}">${f.filename}</a></li>`;
htmlContent += `<li><a href="${url.pathname}/${f.filename}">${f.filename}</a></li>`;
});
htmlContent += '</ul>';
result(htmlContent, 200, { 'Content-Type': 'text/html' });
Expand Down

0 comments on commit 031fb72

Please sign in to comment.