diff options
| -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 { |
