-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Handler gets called Multiple Times #2474
Comments
if err != nil {
log.Println(err)
} should other than that - issue does not have enough information to say why it is called. |
learning how to debug - line by line, could be your most significant "level up" in development career |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Under specific conditions and wrong html header, a routes is executed multiple times
Checklist
Expected behaviour
Handler should be called once
Actual behaviour
Handler gets Called once, then another 3 times within microseconds?
Steps to reproduce
I have no idea, why. The Code Explains some debugging atempts
Tested with Chrome and Firefox
Working code to debug
Edit: The Function gets called for every .css file I locally serve. Removing them fixes the multiple Calls .
Edit2: Fixed it
But still I am confused why under some conditions a fault in my HTML Header leads to the function being called multiple times.
The text was updated successfully, but these errors were encountered: