gofiber/fiber · error · ErrRedirectDowngrade
client: HTTPS to HTTP redirect blocked
Error message
client: HTTPS to HTTP redirect blocked
What it means
Error "client: HTTPS to HTTP redirect blocked" thrown in gofiber/fiber.
Source
Thrown at client/errors.go:19
package client
import (
"errors"
)
var (
errResponseChanTypeAssertion = errors.New("failed to type-assert to *Response")
errChanErrorTypeAssertion = errors.New("failed to type-assert to chan error")
errRequestTypeAssertion = errors.New("failed to type-assert to *Request")
errFileTypeAssertion = errors.New("failed to type-assert to *File")
errCookieJarTypeAssertion = errors.New("failed to type-assert to *CookieJar")
errSyncPoolBuffer = errors.New("failed to retrieve buffer from a sync.Pool")
// ErrRedirectDowngrade is returned when DoRedirects encounters a
// redirect from an HTTPS origin to a plaintext HTTP target.
// Following such a redirect would leak any credentials, cookies, or
// session tokens that the original HTTPS handshake protected.
ErrRedirectDowngrade = errors.New("client: HTTPS to HTTP redirect blocked")
)
View on GitHub (pinned to 9a4c7e57fe)
When it happens
Trigger: Thrown at client/errors.go:19 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of gofiber/fiber@9a4c7e57fe (2026-08-04).
Data as JSON: /data/errors/6265bb2ae6fd2cf4.json.
Report an issue: GitHub.