🐛 Fix incomplete url when expand

This commit is contained in:
2024-08-19 15:36:57 +08:00
parent 3d5ba6ef4c
commit 8bea691f2e
3 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ import (
var inProgress sync.Map
func getLinkMeta(c *fiber.Ctx) error {
targetEncoded := c.Params("target")
targetRaw, _ := base64.URLEncoding.DecodeString(targetEncoded)
targetEncoded := c.Params("*1")
targetRaw, _ := base64.StdEncoding.DecodeString(targetEncoded)
if ch, loaded := inProgress.LoadOrStore(targetEncoded, make(chan struct{})); loaded {
// If the request is already in progress, wait for it to complete