mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-20 00:26:34 +00:00
Tweak config content
This commit is contained in:
1 parent
5586d16afd
commit
6147ee925e
2 files changed
+2
-12
No files matched your search
@@ -191,12 +191,7 @@ func GetHostNginxConfig(format string) func(http.ResponseWriter, *http.Request)
|
||||
h.ResultResponseText(w, r, http.StatusOK, content)
|
||||
return
|
||||
}
|
||||
|
||||
j := struct {
|
||||
Content string `json:"content"`
|
||||
}{Content: content}
|
||||
|
||||
h.ResultResponseJSON(w, r, http.StatusOK, j)
|
||||
h.ResultResponseJSON(w, r, http.StatusOK, content)
|
||||
default:
|
||||
h.ResultErrorJSON(w, r, http.StatusBadRequest, err.Error(), nil)
|
||||
}
|
||||
|
||||
@@ -144,12 +144,7 @@ func GetUpstreamNginxConfig(format string) func(http.ResponseWriter, *http.Reque
|
||||
h.ResultResponseText(w, r, http.StatusOK, content)
|
||||
return
|
||||
}
|
||||
|
||||
j := struct {
|
||||
Content string `json:"content"`
|
||||
}{Content: content}
|
||||
|
||||
h.ResultResponseJSON(w, r, http.StatusOK, j)
|
||||
h.ResultResponseJSON(w, r, http.StatusOK, content)
|
||||
default:
|
||||
h.ResultErrorJSON(w, r, http.StatusBadRequest, err.Error(), nil)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user