You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've to make some requests to a specific host with an URL encoded through the params, such as: https://example.my.host/other.host%2path%2to%2data%31231231
But instead, it parses to: https://example.my.host/other.host/path/to/data/31231231
I tried using DisablePathNormalizing from my agent, but it didn't work and seems like it doesn't apply any effect on the method Parse from FastHttp.
Code Snippet (optional)
package main
import"github.com/gofiber/fiber/v3"import"log"funcmain() {
agent:=fiber.Get(fmt.Sprintf("https://example.my.host/%s", url.QueryEncode("other.host/path/to/data/31231231")))
// If you tries to debug it, it'll show like // https://example.my.host/other.host%2path%2to%2data%231231231agent.DisablePathNormalizing=trueagent.Set("Content-Type", "application/json")
// It parses to https://example.my.host/other.host/path/to/data/31231231slog.Info("URL: ", agent.Request().URI().String())
}
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Question Description
I've to make some requests to a specific host with an URL encoded through the params, such as:
https://example.my.host/other.host%2path%2to%2data%31231231
But instead, it parses to:
https://example.my.host/other.host/path/to/data/31231231
I tried using
DisablePathNormalizing
from my agent, but it didn't work and seems like it doesn't apply any effect on the methodParse
fromFastHttp
.Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: