Fixed computation of base pathname to trim subpath off of the end of the originalUrl, not just removing it everywhere in the originalUrl. Error was visible in the JSON from http GET of the base. Also handle case where originalUrl was null, as it is in the README.md example.
Fixed computation of base pathname to trim subpath off of the end of the originalUrl, not just removing it everywhere in the originalUrl. Error was visible in the JSON from http GET of the base. Also handle case where originalUrl was null, as it is in the README.md example.