summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorherkulessi <git@herkulessi.de>2026-07-07 17:28:27 +0200
committerherkulessi <git@herkulessi.de>2026-07-07 17:28:27 +0200
commit285fd559f94584a855d949438a83c8729ef836c7 (patch)
treeebfe6e50c9d213380d86c56d28f8420c39449ee9 /main.go
parentc930c458d721b25facb42448764d6020d9f874c2 (diff)
dont escape idprod
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.go b/main.go
index c345f7a..eaba20e 100644
--- a/main.go
+++ b/main.go
@@ -6,7 +6,6 @@ import (
"io"
"log/slog"
"net/http"
- "net/url"
"os"
"strings"
"sync"
@@ -59,7 +58,7 @@ func main() {
}
http.HandleFunc("GET /p/{id}", func(w http.ResponseWriter, r *http.Request) {
- id := url.PathEscape(r.PathValue("id"))
+ id := r.PathValue("id")
migratedLock.RLock()
if _, ok := migrated[id]; ok {