Doing a type safe comparison, otherwise scheme is always ‘https’
Merge pull request #25 from dlockhart/master

Fix for scheme parameter