Fix logic error in URL splitting code
Merge pull request #71 from chuckdumont/master

Fix logic error in URL splitting code