diff --git a/FinalCommander.go b/FinalCommander.go index 575d39c..9f095ef 100644 --- a/FinalCommander.go +++ b/FinalCommander.go @@ -160,11 +160,12 @@ func handle(ctx *httputils.RequestContext) { } return } else if pathElements[3] == "drop" { //Drop key from cache - ctx.SetResponseCode(http.StatusOK) + ctx.SetResponseCode(http.StatusNoContent) _ = db.RemoveEntry(key) if entry != nil && !entry.Key.Equals(key) { _ = db.RemoveEntry(&entry.Key) } + ctx.ServeBytes([]byte{}) return }