Fix http server

This commit is contained in:
Timmy Welch 2025-04-13 16:42:49 -07:00
parent 486cf074d0
commit 9322f754bf

View File

@ -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)