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

Redundant handler call #27745

Closed
msvarin opened this issue Sep 19, 2018 · 1 comment
Closed

Redundant handler call #27745

msvarin opened this issue Sep 19, 2018 · 1 comment

Comments

@msvarin
Copy link

msvarin commented Sep 19, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.11

Does this issue reproduce with the latest release?

y

What operating system and processor architecture are you using (go env)?

win 10 amd

What did you do?

func main() {
http.HandleFunc("/", h.Root)
http.HandleFunc("/auth", h.Auth)
http.HandleFunc("/page", h.Page)
http.ListenAndServe(":8080", nil)
}

in Root handler:
log.Printf("LOG Root handler start")

browser: http://localhost:8080/page

and get message in console from both Page and Root handlers

(in browser only Page)

What did you expect to see?

no message from Root handler

What did you see instead?

have message

@davecheney
Copy link
Contributor

This is not a bug, your browser is requesting /favicon.ico which is falling through to your root handler.

Unlike many projects on GitHub, the Go project does not use its bug tracker for general discussion or asking questions. We only use our bug tracker for tracking bugs and tracking proposals going through the Proposal Process.

Please see https://golang.org/wiki/Questions for good places to ask questions.

@golang golang locked and limited conversation to collaborators Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants