Skip to content

v1.1-1

Latest
Compare
Choose a tag to compare
@golgote golgote released this 13 Oct 14:07
· 1 commit to master since this release

New options to make encoding more flexible (some scheme are different from others in this regard, more or less strict):

  • legal_in_path is a table of characters that will not be url encoded in path components.
  • legal_in_query is a table of characters that will not be url encoded in query values. Query parameters on the other hand only support a small set of legal characters (-_.).
  • query_plus_is_space is true by default, so a plus sign in a query value will be converted to %20 (space), not %2B (plus).

New function addSegment(path) which also works with __div metatable:

u = url.parse('http://example.com') / 'bands' / 'AC/DC'