Fix for #45 (failing to route with localhost). Thanks @picciano!