summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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 {