mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update id_converter.go
This commit is contained in:
parent
8b00007fb5
commit
9a6d287607
@ -6,7 +6,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
//log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var r = regexp.MustCompile(`[\/\-]([0-9a-f]+)\/?$`)
|
||||
@ -35,8 +34,6 @@ func idFromPath(path string) string {
|
||||
|
||||
func idFromParams(c *fiber.Ctx) string {
|
||||
ru := c.Query("redirectUrl", "")
|
||||
//log.Printf("REQ: %s", string(c.Request().String()))
|
||||
//log.Printf("RESP: %s", string(c.Response().String()))
|
||||
if ru != "" {
|
||||
pu, err := url.Parse(ru)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user