Skip to content

Hosting a basic html page #21

@datee

Description

@datee

I'm trying to host a super simple html page:

<html>
<body>
<h1>Hello</h1>
<img src="picture.jpg" />
</body>
</html>

The image is always broken, and the page doesnt stop loading.. but if i open the image link it in a new browser tab it works fine. Also, if refreshing the same image many times in a tab it will sometimes just not load..
Is this somehow related to requesting multiple files? Any way to work around it?

var app = new Weblink();
app.serve("/","d:/files_root");
app.listen(2000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions