- commit
- 955929f
- parent
- 0c61b59
- author
- Eric Bower
- date
- 2024-01-03 03:00:02 +0000 UTC
chore(prose): support trailing "/" for post raw
1 files changed,
+1,
-1
+1,
-1
1@@ -294,6 +294,7 @@ func postRawHandler(w http.ResponseWriter, r *http.Request) {
2 } else {
3 slug, _ = url.PathUnescape(shared.GetField(r, 0))
4 }
5+ slug = strings.TrimSuffix(slug, "/")
6
7 dbpool := shared.GetDB(r)
8 logger := shared.GetLogger(r)
9@@ -332,7 +333,6 @@ func postHandler(w http.ResponseWriter, r *http.Request) {
10 } else {
11 slug, _ = url.PathUnescape(shared.GetField(r, 0))
12 }
13-
14 slug = strings.TrimSuffix(slug, "/")
15
16 dbpool := shared.GetDB(r)