2 years ago Omar Polo
declare uri as static; while here improve legibility of the length check too
move the logic into its own function.
pull in control.c, with some local edits to integrate into the project