Fix fatal. Derp
Set the domain with `parse_url()`, which will correctly handle https
Merge pull request #191 from INN/fix-191

A better way for getting the site's domain