Decompress decompresses request body based if content encoding type is set to "gzip" with default config SECURITY: By default, this limits decompressed data to 100MB to prevent zip bomb attacks. To customize the limit, use DecompressWithConfig. To disable limits (not recommended in production), set
()
| 50 | // To customize the limit, use DecompressWithConfig. To disable limits (not recommended in production), |
| 51 | // set MaxDecompressedSize to -1. |
| 52 | func Decompress() echo.MiddlewareFunc { |
| 53 | return DecompressWithConfig(DecompressConfig{}) |
| 54 | } |
| 55 | |
| 56 | // DecompressWithConfig returns a decompress middleware with config or panics on invalid configuration. |
| 57 | // |
searching dependent graphs…