Skip to content
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

Serve favicon #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Serve favicon #47

wants to merge 1 commit into from

Conversation

MikeLund
Copy link

@MikeLund MikeLund commented Apr 5, 2017

A quick change for serving a favicon from the tracker. Maybe not the most efficient code (and I know headers aren't proper -- didn't bother to differentiate between favicon.ico and favicon.png requests), but hopefully this is useful for someone else.

Why? If someone is using redirect_url, there are many unneeded 302s without this change. Most GUI torrent clients now of days query for favicon at the base URL (eg http://tracker.example.com/favicon.png), instead of http://example.com/favicon.png. Additionally, many clients won't then try the favicon on the base domain after the 302, so any type of caching on their client for the favicon also fails.

So let's just serve the favicon from tracker, what could go wrong ;)

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