mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:58:45 +02:00
api: fix validation and http response
This commit is contained in:
@@ -48,7 +48,7 @@ func SetFileContent(w http.ResponseWriter, r *http.Request) {
|
||||
// no validation for include files
|
||||
|
||||
if valErr != nil {
|
||||
U.RespondJSON(w, r, valErr, http.StatusBadRequest)
|
||||
U.RespondError(w, valErr, http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user