Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix HEAD / request
Michael Yangc98669436742
diff --git a/server/routes.go b/server/routes.goindex c00bad65d..f86ffd073 100644--- a/server/routes.go+++ b/server/routes.go@@ -543,12 +543,11 @@ func Serve(ln net.Listener, allowOrigins []string) error {},)- r.GET("/", func(c *gin.Context) {- c.String(http.StatusOK, "Ollama is running")- })- r.HEAD("/", func(c *gin.Context) {- c.Status(http.StatusOK)- })+ for _, method := range []string{http.MethodGet, http.MethodHead} {+ r.Handle(method, "/", func(c *gin.Context) {+ c.String(http.StatusOK, "Ollama is running")+ })+ }r.POST("/api/pull", PullModelHandler)r.POST("/api/generate", GenerateHandler)