We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@std/http
Describe the bug
Steps to Reproduce
deno.json:
deno.json
{ "imports": { "@std/http": "jsr:@std/http@^1.0.8" } }
server.js:
server.js
import { serveDir } from "@std/http"; Deno.serve((request) => { return serveDir(request, { fsRoot: "public", }); });
public/index.html:
public/index.html
<!DOCTYPE html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, inital-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head>
My file structure has the favicon in the public directory.
public
Run deno run --allow-net --allow-read server.js.
deno run --allow-net --allow-read server.js
In the console it is saying that GET http://0.0.0.0:8000/favicon.ico failed, and the favicon doesn't show up.
GET http://0.0.0.0:8000/favicon.ico
Expected behavior
The favicon icon in head should be served and show up.
Environment
deno --version
The text was updated successfully, but these errors were encountered:
In the console it is saying that GET http://0.0.0.0:8000/favicon.ico failed
What's the exact error message? What does network panel say about http://0.0.0.0:8000/favicon.ico?
http://0.0.0.0:8000/favicon.ico
Sorry, something went wrong.
Sorry for the late response. It seems to have been fixed in some update. Thanks for your time. :D
No branches or pull requests
Describe the bug
Steps to Reproduce
deno.json
:server.js
:public/index.html
:My file structure has the favicon in the
public
directory.Run
deno run --allow-net --allow-read server.js
.In the console it is saying that
GET http://0.0.0.0:8000/favicon.ico
failed, and the favicon doesn't show up.Expected behavior
The favicon icon in head should be served and show up.
Environment
deno --version
it is labeled as x86_64-unknown-linux-gnu)The text was updated successfully, but these errors were encountered: