-
Notifications
You must be signed in to change notification settings - Fork 16
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
[bug] setFileHandler() gives invalid http response #69
Comments
To debug this, you have just to use the debug version of webui, this give the full webui logs. Try something like: if (myUrl.pathname === '/app.js') {
const headers = `HTTP/1.1 200 OK\r\nContent-Type: application/javascript\r\n`;
const body = "console.log('hello from client');";
return `${headers}\r\n${body}`;
} |
I don't know if this extra byte is added by Deno wrapper, or by webui core. if (myUrl.pathname === '/app.js') {
const body = "console.log('hello from client');";
const headers = `HTTP/1.1 200 OK\r\nContent-Type: application/javascript\r\nContent-Length: ${body.length}\r\n`;
return `${headers}\r\n${body}`;
} |
It does fix it, thank you. |
setFileHandler() appears to serve some sort of invalid http response, making it nonfunctional.
I am unfortunately unable to debug why the response is invalid,
curl -v
was not able to give anything useful.I am on Windows 11.
The text was updated successfully, but these errors were encountered: