Update id_converter.go

This commit is contained in:
mycodedoesnotcompile2 2025-12-13 12:42:34 +00:00 committed by GitHub
parent 8b00007fb5
commit 9a6d287607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,6 @@ import (
"strings" "strings"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
//log "github.com/sirupsen/logrus"
) )
var r = regexp.MustCompile(`[\/\-]([0-9a-f]+)\/?$`) var r = regexp.MustCompile(`[\/\-]([0-9a-f]+)\/?$`)
@ -35,8 +34,6 @@ func idFromPath(path string) string {
func idFromParams(c *fiber.Ctx) string { func idFromParams(c *fiber.Ctx) string {
ru := c.Query("redirectUrl", "") ru := c.Query("redirectUrl", "")
//log.Printf("REQ: %s", string(c.Request().String()))
//log.Printf("RESP: %s", string(c.Response().String()))
if ru != "" { if ru != "" {
pu, err := url.Parse(ru) pu, err := url.Parse(ru)
if err != nil { if err != nil {