Fix the parser when path is empty, add test too
Merge pull request #17 from damienalexandre/urlparser

Fix the parser when path is empty