This commit is contained in:
DarthSim
2018-11-06 17:19:34 +06:00
parent e1f3f4278b
commit 6b7551213f
18 changed files with 3164 additions and 110 deletions

View File

@@ -754,7 +754,7 @@ func parsePathAdvanced(parts []string, headers *processingHeaders) (string, *pro
return url, po, nil
}
func parsePathSimple(parts []string, headers *processingHeaders) (string, *processingOptions, error) {
func parsePathBasic(parts []string, headers *processingHeaders) (string, *processingOptions, error) {
var err error
if len(parts) < 6 {
@@ -823,7 +823,7 @@ func parsePath(ctx context.Context, r *http.Request) (context.Context, error) {
var err error
if _, ok := resizeTypes[parts[1]]; ok {
imageURL, po, err = parsePathSimple(parts[1:], headers)
imageURL, po, err = parsePathBasic(parts[1:], headers)
} else {
imageURL, po, err = parsePathAdvanced(parts[1:], headers)
}