1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

Deprecate basic URL format

This commit is contained in:
DarthSim 2021-09-07 18:00:07 +06:00
parent bb9294f163
commit ce5116b9ec
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,9 @@
### Fix
- (pro) Fix path prefix support in the `/info` handler.
### Deprecated
- The [basic URL format](https://docs.imgproxy.net/generating_the_url_basic) is deprecated and can be removed in future versions. Use [advanced URL format](https://docs.imgproxy.net/generating_the_url_advanced) instead.
## [2.16.7] - 2021-07-20
### Change
- Reset DPI while stripping meta.

View File

@ -1122,6 +1122,8 @@ func parsePathPresets(parts []string, headers *processingHeaders) (string, *proc
}
func parsePathBasic(parts []string, headers *processingHeaders) (string, *processingOptions, error) {
logWarning("The basic URL format is deprecated and can be removed in future versions. Use advanced URL format instead")
if len(parts) < 6 {
return "", nil, fmt.Errorf("Invalid basic URL format arguments: %s", strings.Join(parts, "/"))
}