No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
Readme.md
package.json
plugin.js
test.js

Readme.md

fastify-no-icon

This is a simple plugin for Fastify to deal with annoying /favicon.ico requests. Under normal operation Fastify will throw an error because a route isn't registered to handle the request. This plugin merely gives it one.

Example

const fastify = require('fastify')()
fastify.register(require('fastify-no-icon'))
fastify.listen(3000)
// curl 127.0.0.1:3000/favicon.ico => empty 404 and no thrown error

License

MIT License