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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user