Skip to content

Add separate handling of the /favicon.ico path in the default wsgi implementation - #631

Merged
csmarchbanks merged 1 commit into
prometheus:masterfrom
ngehrsitz:favicon-handling
Feb 25, 2021
Merged

csmarchbanks merged 1 commit into
prometheus:masterfrom
ngehrsitz:favicon-handling

Conversation

@ngehrsitz

Copy link
Copy Markdown
Contributor

By default many browsers will attempt to load a /favicon.ico resource from the server. Currently the default wsgi implementation serves metrics on any path and thus will incorrectly return metrics when being asked for a favicon. This PR fixes this behavior by serving an empty response.

@ngehrsitz
ngehrsitz force-pushed the favicon-handling branch 4 times, most recently from 271dc91 to 877d797 Compare February 23, 2021 18:28
…plementation

Signed-off-by: Norman Gehrsitz <gehrsitz.norman@student.dhbw-kahlsruhe.de>
@ngehrsitz
ngehrsitz marked this pull request as ready for review February 23, 2021 18:44

@csmarchbanks csmarchbanks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this seems reasonable to me!

@csmarchbanks
csmarchbanks merged commit 5dffc77 into prometheus:master Feb 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants