mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-27 05:46:25 +02:00
accept "fit" option
this also relaxes option parsing to never return an error. In cases where options are not able to be parsed, they are silently ignored.
This commit is contained in:
parent
805aa606ca
commit
2794d47390
4 changed files with 47 additions and 23 deletions
|
|
@ -46,10 +46,7 @@ func NewRequest(r *http.Request) (*data.Request, error) {
|
|||
return nil, URLError{fmt.Sprintf("unable to parse remote URL: %v", err), r.URL}
|
||||
}
|
||||
|
||||
req.Options, err = data.ParseOptions(parts[0])
|
||||
if err != nil {
|
||||
return nil, URLError{err.Error(), r.URL}
|
||||
}
|
||||
req.Options = data.ParseOptions(parts[0])
|
||||
}
|
||||
|
||||
if !req.URL.IsAbs() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue