-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make normalizeHeaderKey optional #57
Comments
@djannot , thanks for the feature request. I'll look into it. |
Done - see |
I've tried to use the new feature this way: c := &fasthttp.HostClient{
Addr: "10.64.231.196:9020",
}
response := fasthttp.AcquireResponse()
response.Header.DisableNormalizing()
err := c.DoTimeout(&ctx.Request, response, time.Second * 3600)
if err != nil {
log.Printf("Error: %s", err)
}
fmt.Println(response.Header.String()) But response headers are normalized. Did I make something wrong ? |
…t and HostClient to be consistent with the corresponding option in Server
The feature wan't implemented for the Just added |
Could you please make this function optional ?
Even if headers are supposed to be case-insensitive, many applications aren't working correctly when they header case isn't the one they were expecting. I want to build a reverse proxy based on fasthttp and need it to be compatible with any application.
The text was updated successfully, but these errors were encountered: