-
Couldn't load subscription status.
- Fork 275
Closed
Description
The CompressHandler of [gorilla/handlers][1] gzips responses twice if they're already gzipped, i.e. it ignores the Content-Encoding header.
Here's a minimal working example:
package main
import (
"fmt"
"net/http"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
func main() {
r := mux.NewRouter()
r.Handle("/", promhttp.Handler())
r.Use(handlers.CompressHandler)
fmt.Println("Listening on :9999")
http.ListenAndServe(":9999", r)
}blixt
Metadata
Metadata
Assignees
Labels
No labels