diff --git a/handler/router.go b/handler/router.go index afcc327d2..30f7d91fc 100644 --- a/handler/router.go +++ b/handler/router.go @@ -23,7 +23,7 @@ func Convert(c *fiber.Ctx) error { // 3. pass it to encoder, get the result, send it back // normal http request will start with / - if strings.HasPrefix(c.Path(), ".") || strings.HasPrefix(c.Path(), "%2e") { + if !strings.HasPrefix(c.Path(), "/") { _ = c.SendStatus(http.StatusBadRequest) return nil }