mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-02 11:34:20 +02:00
Deprecate basic URL format
This commit is contained in:
parent
bb9294f163
commit
ce5116b9ec
@ -10,6 +10,9 @@
|
|||||||
### Fix
|
### Fix
|
||||||
- (pro) Fix path prefix support in the `/info` handler.
|
- (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
|
## [2.16.7] - 2021-07-20
|
||||||
### Change
|
### Change
|
||||||
- Reset DPI while stripping meta.
|
- Reset DPI while stripping meta.
|
||||||
|
@ -1122,6 +1122,8 @@ func parsePathPresets(parts []string, headers *processingHeaders) (string, *proc
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parsePathBasic(parts []string, headers *processingHeaders) (string, *processingOptions, error) {
|
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 {
|
if len(parts) < 6 {
|
||||||
return "", nil, fmt.Errorf("Invalid basic URL format arguments: %s", strings.Join(parts, "/"))
|
return "", nil, fmt.Errorf("Invalid basic URL format arguments: %s", strings.Join(parts, "/"))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user