mirror of
https://github.com/willnorris/imageproxy.git
synced 2025-01-06 22:40:34 -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)
|
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
|
// tieredCache allows specifying multiple caches via flags, which will create
|
||||||
|
|
Loading…
Reference in a new issue