mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Deprecate GZip
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
- `dpr` option always changes the resulting size even if it leads to enlarge and `enlarge` is falsey;
|
- `dpr` option always changes the resulting size even if it leads to enlarge and `enlarge` is falsey;
|
||||||
- Log to STDOUT;
|
- Log to STDOUT;
|
||||||
- [filename](./docs/generating_the_url_advanced.md#filename) option;
|
- [filename](./docs/generating_the_url_advanced.md#filename) option;
|
||||||
- Only unexpected errors are reported to Bugsnag/Honeybadger/Sentry.
|
- Only unexpected errors are reported to Bugsnag/Honeybadger/Sentry;
|
||||||
|
- GZip compression support is deprecated.
|
||||||
|
|
||||||
## v2.3.0
|
## v2.3.0
|
||||||
|
|
||||||
|
@@ -222,7 +222,6 @@ var conf = config{
|
|||||||
SignatureSize: 32,
|
SignatureSize: 32,
|
||||||
PngQuantizationColors: 256,
|
PngQuantizationColors: 256,
|
||||||
Quality: 80,
|
Quality: 80,
|
||||||
GZipCompression: 5,
|
|
||||||
UserAgent: fmt.Sprintf("imgproxy/%s", version),
|
UserAgent: fmt.Sprintf("imgproxy/%s", version),
|
||||||
Presets: make(presets),
|
Presets: make(presets),
|
||||||
WatermarkOpacity: 1,
|
WatermarkOpacity: 1,
|
||||||
@@ -424,6 +423,10 @@ func configure() {
|
|||||||
logFatal("GZip compression can't be greater than 9, now - %d\n", conf.GZipCompression)
|
logFatal("GZip compression can't be greater than 9, now - %d\n", conf.GZipCompression)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if conf.GZipCompression > 0 {
|
||||||
|
logWarning("GZip compression is deprecated and can be removed in future versions")
|
||||||
|
}
|
||||||
|
|
||||||
if conf.IgnoreSslVerification {
|
if conf.IgnoreSslVerification {
|
||||||
logWarning("Ignoring SSL verification is very unsafe")
|
logWarning("Ignoring SSL verification is very unsafe")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user