Permalink
Browse files

[fix] uri: accept key without value

CHANGELOG
  • Loading branch information...
1 parent ace365b commit 6547c444c7964079701f138abb0b0cd8252caa9d @OpaOnWindowsNow OpaOnWindowsNow committed May 28, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 stdlib/core/web/core/uri.opa
@@ -265,9 +265,7 @@ UriParser =
segs = Rule.parse_list_non_empty(domain_segment, parser [.])
parser ls=segs -> List.to_string_using("", "", ".", ls)
- query_element = parser
- | key=chars_query "=" value=opt_chars_query -> (key, value)
- | key=chars_query -> (key, "")
+ query_element = parser key=chars_query value=("=" value=opt_chars_query -> value)? -> (key, value ? "")
query_parser = Rule.parse_list(query_element, parser [&;] -> void)
query =

0 comments on commit 6547c44

Please sign in to comment.