felixge / felixge/httpsnoop

superfluous response.WriteHeader call

Aperta
#32 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1.2k
Fork
48
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`http: superfluous response.WriteHeader call from github.com/felixge/httpsnoop.(*Metrics).CaptureMetrics.func1.1 (capture_metrics.go:53)`

I sometimes get this error in my logs when serving static files with `http.ServeContent`.

Not sure how this happens if the wrapper is working correctly but the logs don't lie. Maybe `ServeContent` is somehow getting direct access to the underlying writer?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.