mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-07 11:36:25 +02:00
Disable extension checking if the raw
processing option is used
This commit is contained in:
parent
49e5eb063c
commit
25459ef88c
@ -7,6 +7,7 @@
|
||||
### Change
|
||||
- Connecting to loopback, link-local multicast, and link-local unicast IP addresses when requesting source images is prohibited by default.
|
||||
- Tuned source image downloading flow.
|
||||
- Disable extension checking if the `raw` processing option is used.
|
||||
|
||||
### Fix
|
||||
- (pro) Fix face detection during advanced smart crop in some cases.
|
||||
|
@ -1138,7 +1138,7 @@ func parsePathOptions(parts []string, headers http.Header) (*ProcessingOptions,
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
if len(extension) > 0 {
|
||||
if !po.Raw && len(extension) > 0 {
|
||||
if err = applyFormatOption(po, []string{extension}); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
@ -1165,7 +1165,7 @@ func parsePathPresets(parts []string, headers http.Header) (*ProcessingOptions,
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
if len(extension) > 0 {
|
||||
if !po.Raw && len(extension) > 0 {
|
||||
if err = applyFormatOption(po, []string{extension}); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user