Hello.
I was attempting to use the new URI.encode
method.
I used to be able to call this:
URI.escape("some string", true)
but replacing with URI.encode("some string", true)
I get this:
URI.encode("peter + paul", true)
In test2.cr:4:5
4 | URI.encode("peter + paul", true)
^-----
Error: no overload matches 'URI.encode' with types String, Bool
Overloads are:
- URI.encode(string : String, io : IO, *, space_to_plus : Bool = false)
- URI.encode(string : String, *, space_to_plus : Bool = false)
- URI.encode(string : String, io : IO, space_to_plus : Bool = false, &block)
but this works:
URI.encode("peter + paul", space_to_plus: true) # => "peter+%2B+paul"
Am I missing something fundamental here? Should it be callable with only two parameters? Thanks!