diff options
| author | herkulessi <git@herkulessi.de> | 2026-07-07 17:28:27 +0200 |
|---|---|---|
| committer | herkulessi <git@herkulessi.de> | 2026-07-07 17:28:27 +0200 |
| commit | 285fd559f94584a855d949438a83c8729ef836c7 (patch) | |
| tree | ebfe6e50c9d213380d86c56d28f8420c39449ee9 | |
| parent | c930c458d721b25facb42448764d6020d9f874c2 (diff) | |
dont escape idprod
| -rw-r--r-- | main.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 { |
