enhance: update gonginx and cosy to latest version

This commit is contained in:
0xJacky 2024-01-14 10:53:27 +08:00
parent af9395ad69
commit 85da74b3f0
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
39 changed files with 799 additions and 662 deletions

View file

@ -137,7 +137,6 @@ func GetStream(c *gin.Context) {
return
}
c.Set("maybe_error", "nginx_config_syntax_error")
nginxConfig, err := nginx.ParseNgxConfig(path)
if err != nil {
@ -234,7 +233,6 @@ func SaveStream(c *gin.Context) {
if nginx.GetLogLevel(output) > nginx.Warn {
c.JSON(http.StatusInternalServerError, gin.H{
"message": output,
"error": "nginx_config_syntax_error",
})
return
}