fix: uri test

This commit is contained in:
Sofia Rodrigues
2026-03-13 23:46:35 -03:00
parent 3a4a309aed
commit d71f0bdae7
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ The path should start with '/' (e.g., "/api/users" or "/search?q=test").
Panics if the string is not a valid origin-form request target.
-/
@[inline]
def pathAndQuery! (path : String) : RequestTarget :=
def originForm! (path : String) : RequestTarget :=
match parse? path with
| some (.originForm o) => .originForm o
| _ => panic! s!"invalid origin-form request target: {path}"

View File

@@ -586,9 +586,9 @@ info: /x/y
-- ============================================================================
#guard (URI.parse! "http://example.com").path.isEmpty = true
#guard (URI.parse! "http://example.com/").path.absoluteForm = true
#guard (URI.parse! "http://example.com/").path.absolute = true
#guard (URI.parse! "http://example.com/a").path.isEmpty = false
#guard (URI.parse! "http://example.com/a").path.absoluteForm = true
#guard (URI.parse! "http://example.com/a").path.absolute = true
-- ============================================================================
-- URI Modification Helpers