1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Prevent from sending deletion token hash

This commit is contained in:
Lukas SP
2020-10-02 18:25:39 +02:00
parent 87450098cb
commit 078d9895a2
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ func v1GetPaste(ctx *fasthttp.RequestCtx) {
ctx.SetBodyString("paste not found")
return
}
paste.DeletionToken = ""
// Respond with the paste
jsonData, err := json.Marshal(paste)