Commit 7f27bbec authored by Bastien Gounon's avatar Bastien Gounon 🐗
Browse files

add line breaks to return strings

parent f2a66c20
Pipeline #78427 passed with stage
in 55 seconds
......@@ -28,13 +28,13 @@ func main() {
r.DELETE("/flush", func(c *gin.Context) {
userToken := c.Query("token")
if userToken != serverToken {
c.String(http.StatusUnauthorized, "Permission denied.")
c.String(http.StatusUnauthorized, "Permission denied.\n")
} else {
err := clearAllFiles(dir)
if err != nil {
c.String(http.StatusInternalServerError, "Error while trying to flush the cache, please check with the system administrator: %s", err.Error())
c.String(http.StatusInternalServerError, "Error while trying to flush the cache, please check with the system administrator:\n%s\n", err.Error())
} else {
c.String(http.StatusOK, "Cache successfully flushed.")
c.String(http.StatusOK, "Cache successfully flushed.\n")
}
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment