From a47e111069bb90ff300f1ad694d24c08f8923c63 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Wed, 3 Oct 2018 19:34:53 +0600 Subject: [PATCH] Fix focus point gravity in basic URL format --- processing_options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processing_options.go b/processing_options.go index cb353783..d80b4f99 100644 --- a/processing_options.go +++ b/processing_options.go @@ -508,7 +508,7 @@ func parsePathSimple(parts []string, acceptHeader string) (string, processingOpt return "", po, err } - if err = applyGravityOption(&po, parts[3:4]); err != nil { + if err = applyGravityOption(&po, strings.Split(parts[3], ":")); err != nil { return "", po, err } @@ -551,7 +551,7 @@ func parsePath(r *http.Request) (string, processingOptions, error) { if _, ok := resizeTypes[parts[1]]; ok { return parsePathSimple(parts[1:], acceptHeader) - } else { - return parsePathAdvanced(parts[1:], acceptHeader) } + + return parsePathAdvanced(parts[1:], acceptHeader) }