diff --git a/app/router/router.go b/app/router/router.go index b9985e2..481d262 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -36,7 +36,7 @@ func Init() *gin.Engine { requestTls = "https://" } r.Use(mw.SwagAuth()) - ginSwagger.WrapHandler(swaggerFiles.Handler, ginSwagger.URL(requestTls+c.Request.Host+"/api/api-docs/open.json"))(c) + ginSwagger.WrapHandler(swaggerFiles.Handler, ginSwagger.URL(requestTls+c.GetHeader("X-Host")+"/api/api-docs/open.json"))(c) }) r.Use(mw.ChangeHeader)