Skip to content

v1.12.0

Compare
Choose a tag to compare
@Fenny Fenny released this 19 Jun 09:41
308ab66

🔥 New


🧹 Updates

  • The hyphen (-) and the dot (.) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87
// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
  c.Params("genus")   // prunus
  c.Params("species") // persica
})

// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
  c.Params("from")   // LAX
  c.Params("to")     // SFO
})

🩹 Fixes

  • Avoid panic in c.Subdomains #475
  • Do not use normalized path #482
  • Fix unnecessary pass throughs for groups #487
  • Fix flag.Parse() compatibility #469