Commits
- Commit:
6d0918263815f42917efe14158e8f1c21b1aae22
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: zero iri_flags before parsing
- Commit:
21fc67ae053c5b9471bbf16e990cfccdefa9c029
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: use a temp buffer for %enc in iri_setquery
- Commit:
9987c6fb4f2e1754d290359f08988d29304f9d19
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add some tests for iri_setquery
- Commit:
3f2ab305cab249cabbe914b0d8770b50688c5d4c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tests: tweak logging on iritest
- Commit:
a2785a57c07c946ec9269b0871f858fa863d4e6e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: implement iri_setquery
- Commit:
5cc70f14c1532e84bd763a1011f1e531007e34f9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/check/resolve
- Commit:
4f147cdf76dda78f6e60c93ee92d136eca0e4817
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix add_proxy path check
IH_PATH is almost always defined, check that the path is the empty
string.
- Commit:
870edfb9f7fcd981eb681c9c59072f82c9a6891f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: fix port parsing
- Commit:
a165601e7e2641edcf7b36be8ce9c03ab281fd99
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: support framents and enable fragments tests
- Commit:
92e07b23c3cad37a92a7888b062064996891b1a3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: add tests for the parser
- Commit:
8b2b06b5122892c74e4dd58772be73ea2fd2933b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: rewrite remove_dot_segments to be clearer
the previous version was straight out RFC3986 (more or less, it had a
bug I didn't spot), but it's ugly and extremely long. Rewrite it to be
somewhat inspired by canonpath (from kern_pledge.c) and way simpler.
There are some small differences in how UNIX paths and URLs paths are
canonized (in UNIX path you don't care too much of a trailing '/', in
URLs you do.)
The new code is more clear and passes all the tests in RFC3986, so I'm
calling it a win.
- Commit:
cb7621af57ac2abad12fa61893d00199daebdd29
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
a9eac73439353c3222a01235919b74a0ba6dc483
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: fix remove_dot_segments: should copy until (including) "/"
- Commit:
30398ec1cb13001ad23b1cb8c6d3e2e93796da2f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: fix typo: should check the first two characters, not three
- Commit:
5cb6cd4da7c71adf2c773f9cc29f8ad523e8fbfa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
iri: fix path check
path should *start* with "/" to enter that branch, not be exactly "/".