Commits


iri: fix remove_dot_segments algorithm i've misread the description in the RFC; we should copy up to, but not including, the next '/' at the end and manually inject some '/' in some other cases.


iri: fix remove_dot_segments: should copy until (including) "/"


iri: fix typo: should check the first two characters, not three


iri: fix path check path should *start* with "/" to enter that branch, not be exactly "/".


iri: fix logic in iri_unparse make sure path starts with "/" only when there's an authority part, not when it's not there!


iri: drop extraneous cpfields(IH_QUERY)


iri: set some flags as defined only when actually copying


iri: draft iri_unparse


iri: avoid unpleasant infinite loop in remove_dot_segments need to copy until the *next* path segment, otherwise we loop indefinitely if *p == '/'.


iri: catch remove_dot_segments/mergepath failures and set errno


iri: first try at remove_dot_segments and mergepath


iri: lowercase scheme and host (part of URI normalization)


use the new iri parser in ir_select_gemini While here also add some error checking.


use the new iri parser in parse.y for proxy validation


hook iri.[ch] into the build