Fixed potentiel bug if an URL object is returned
Merge pull request #3 from Nekland/fix/code-quality

Fixed potentiel bug if an URL object is returned