mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
cmd/imageproxy: use http.DefaultServeMux
this allows using the net/http/pprof package, and any other similar package that registers handlers on the default ServerMux.
This commit is contained in:
parent
594376fc0f
commit
3b850734af
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ func main() {
|
|||
}
|
||||
|
||||
fmt.Printf("imageproxy listening on %s\n", server.Addr)
|
||||
log.Fatal(server.ListenAndServe())
|
||||
http.Handle("/", p)
|
||||
log.Fatal(http.ListenAndServe(*addr, nil))
|
||||
}
|
||||
|
||||
// tieredCache allows specifying multiple caches via flags, which will create
|
||||
|
|
Loading…
Reference in a new issue