From 9dc505af17e79d34c7e78d551554b237c71593a9 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 23 Mar 2020 15:55:36 -0600 Subject: [PATCH] Confirm delete --- main.go | 2 +- public/DIR2/d.md | 0 public/_index.html | 1 - public/a.md | 0 4 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 public/DIR2/d.md delete mode 100755 public/_index.html delete mode 100644 public/a.md diff --git a/main.go b/main.go index 6e51f73..f42a619 100755 --- a/main.go +++ b/main.go @@ -145,7 +145,7 @@ func withDel(foo http.HandlerFunc) http.HandlerFunc { if len(match) > 0 { match = bytes.Split(match, []byte(`href="`))[1] match = match[:len(match)-1] - b[i] = []byte(fmt.Sprintf(` %s`, match, ENDPOINT_DELETE, b[i])) + b[i] = []byte(fmt.Sprintf(` %s`, match, ENDPOINT_DELETE, match, b[i])) } } buff.Write(b[i]) diff --git a/public/DIR2/d.md b/public/DIR2/d.md deleted file mode 100644 index e69de29..0000000 diff --git a/public/_index.html b/public/_index.html deleted file mode 100755 index 45b983b..0000000 --- a/public/_index.html +++ /dev/null @@ -1 +0,0 @@ -hi diff --git a/public/a.md b/public/a.md deleted file mode 100644 index e69de29..0000000