Skip to content
Permalink
Browse files

Fix parsing path with no options and base64 encoded url

  • Loading branch information...
DarthSim committed Oct 21, 2019
1 parent 4c8641f commit a4dd7bc32d9265c5ec122a41a0bd826506a12937
Showing with 1 addition and 1 deletion.
  1. +1 −1 processing_options.go
@@ -923,7 +923,7 @@ func parsePath(ctx context.Context, r *http.Request) (context.Context, error) {
}
parts := strings.Split(strings.TrimPrefix(path, "/"), "/")

if len(parts) < 3 {
if len(parts) < 2 {
return ctx, newError(404, fmt.Sprintf("Invalid path: %s", path), msgInvalidURL)
}

0 comments on commit a4dd7bc

Please sign in to comment.
You can’t perform that action at this time.