echo
echo copied to clipboard
High performance, minimalist Go web framework
When using the `Proxy` middleware to forward requests to a backend service that already performs Gzip compression, the `Gzip` middleware in Echo attempts to compress the response body a second...
## Problem When a proxy target URL contains User credentials, proxy middleware does not send request with the authorization header. This can lead to UnAuthorized Error (401) when connecting to...
Hello, I've encountered a situation which seems to be a bug to me. In the following code, I set up the static middleware with HTML5 param to true so I...
### **Issue Description** In earlier versions of echo, binding errors were serialized by `DefaultHTTPErrorHandler` into JSON. This has apparently changed with the commit [**fbfe216** fix(DefaultHTTPErrorHandler): return error message when message...
```go e := echo.New() e.Use(func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { log.Println("middleware...") return next(c) } }) e.GET("/hello", func(c echo.Context) error { return c.String(http.StatusOK, "Hello, World!") }) e.Logger.Fatal(e.Start(":1323")) ```...
To easily access context typed values, would you consider adding typed getters? ```go userID := ctx.GetInt64("userId") ``` This of course would be a breaking change since a bunch of new...
This is taken from `v5` branch + improved tests reasoning for it: multiple auth headers is something that can happen in environments like corporate test environments that are secured by...
Hello! I'm adding support to configurable status code for CORS preflight response. Changes: - `middleware/cors.go`: - Adds the field `PreflightStatusCode` to `CORSConfig` struct - Sets `http.NoContent` as default value for...
Added test explicit verification for [reuse CSRF token logic](https://github.com/labstack/echo/blob/3598f295f95f316bbeb252b7b332fe34e120815c/middleware/csrf.go#L136): - Strictly validates token is reused when cookie exists - Confirms new token is generated when no cookie provided This reinforces...
Regarding the [google API design](https://cloud.google.com/apis/design/custom_methods) custom methods, the issue has been resolved in PR #1988. However, this solution is not complete as it does not allow a custom method to...