Browse Source

Fix parsing path with no options and base64 encoded url

DarthSim 5 years ago
parent
commit
a4dd7bc32d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      processing_options.go

+ 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)
 	}