xitzin 0.6.0__tar.gz → 0.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: xitzin
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: A Gemini Application Framework
5
5
  Keywords: gemini,protocol,framework,async,geminispace
6
6
  Author: Alan Velasco
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xitzin"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  description = "A Gemini Application Framework"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -243,6 +243,9 @@ class MountedRoute:
243
243
  Returns:
244
244
  True if path starts with this mount's prefix.
245
245
  """
246
+ # Root mount matches all paths
247
+ if self.path_prefix == "/":
248
+ return path.startswith("/")
246
249
  # Exact match or prefix with /
247
250
  return path == self.path_prefix or path.startswith(self.path_prefix + "/")
248
251
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes