You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-06 09:29:19 +02:00
fixed comments and added default generic arg name
This commit is contained in:
@@ -20,9 +20,6 @@ const (
|
||||
|
||||
// BodyLimit returns a middleware function that changes the default request body size limit.
|
||||
//
|
||||
// Note that in order to have effect this middleware should be registered
|
||||
// before other middlewares that reads the request body.
|
||||
//
|
||||
// If limitBytes <= 0, no limit is applied.
|
||||
//
|
||||
// Otherwise, if the request body size exceeds the configured limitBytes,
|
||||
|
||||
@@ -45,7 +45,7 @@ type GzipConfig struct {
|
||||
MinLength int
|
||||
}
|
||||
|
||||
// Gzip returns a middleware which compresses HTTP response using gzip compression scheme.
|
||||
// Gzip returns a middleware which compresses HTTP response using Gzip compression scheme.
|
||||
func Gzip() func(*core.RequestEvent) error {
|
||||
return GzipWithConfig(GzipConfig{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user