8000 Hosting a basic html page · Issue #21 · PXshadow/weblink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Hosting a basic html page #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
datee opened this issue Mar 18, 2023 · 3 comments
Open

Hosting a basic html page #21

datee opened this issue Mar 18, 2023 · 3 comments

Comments

@datee
Copy link
datee commented Mar 18, 2023

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);
@PXshadow
Copy link
Owner

I have heard before about this type of problem with the web server. I think there is a bug in the webserver with regards to the current connection state and refreshing temporary fixes it. I'll try to find some time to fix it.

@datee
Copy link
Author
datee commented Mar 28, 2023

Thanks. Im experiencing this problem all the time here with weblink, even for .get(..)
Usually i have to load the link two times for it to work. Otherwise nothing is happening and the link / page just loads and loads and dont stop. I've tried debugging the problem but i cant find the source of the problem, since it seems there is no data in the socket...

Your description of the problem sounds correct, hope you can find a fix for it, otherwise its not really usable at this point. (At least for me, dont know if everyone have the same issue but..)

If it helps, im on Windows, using chrome and Haxe 4.2.5, HL 1.12

@9Morello
Copy link

I tested your example and I cannot reproduce it.
I'm on Haxe 4.3.3, HL 1.12.0, Ubuntu 22.04.

Both the HTML page and the image loaded as expected on Firefox 115 ESR and Chromium 119.

Can you reproduce it on a fresh Windows install?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0