Fix http server
This commit is contained in:
parent
486cf074d0
commit
9322f754bf
@ -794,6 +794,7 @@ type CHMux struct {
|
|||||||
|
|
||||||
func (CHM *CHMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (CHM *CHMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Server", "Comic-Hasher "+CHM.version)
|
w.Header().Set("Server", "Comic-Hasher "+CHM.version)
|
||||||
|
CHM.ServeMux.ServeHTTP(w, r)
|
||||||
}
|
}
|
||||||
func startServer(opts Opts) {
|
func startServer(opts Opts) {
|
||||||
imaging.SetMaxProcs(2)
|
imaging.SetMaxProcs(2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user