diff --git a/route/gin.go b/route/gin.go index 432cd92f2..c40810f9f 100644 --- a/route/gin.go +++ b/route/gin.go @@ -67,7 +67,12 @@ func (r *Gin) Run(host ...string) error { outputRoutes(r.instance.Routes()) color.Greenln("[HTTP] Listening and serving HTTP on " + host[0]) - return r.instance.Run([]string{host[0]}...) + server := &http.Server{ + Addr: host[0], + Handler: http.AllowQuerySemicolons(r.instance), + } + + return server.ListenAndServe() } func (r *Gin) RunTLS(host ...string) error {