From 285fd559f94584a855d949438a83c8729ef836c7 Mon Sep 17 00:00:00 2001 From: herkulessi Date: Tue, 7 Jul 2026 17:28:27 +0200 Subject: dont escape id --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main.go') 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 { -- cgit v1.2.3