only return 200 for clear log requests

This commit is contained in:
bakito 2024-05-25 08:21:49 +02:00
parent 3226690d70
commit ab0589916f
No known key found for this signature in database
GPG key ID: BCCEB081DB8A24D8

View file

@ -52,7 +52,7 @@ func (w *worker) handleLogs(c *gin.Context) {
func (w *worker) handleClearLogs(c *gin.Context) {
log.Clear()
c.Data(http.StatusOK, "text/plain", []byte{})
c.Status(http.StatusOK)
}
func (w *worker) handleStatus(c *gin.Context) {