#998: Fix undefined host in validate_redirect
Merge pull request #124 from Quy/998-redirect

#998: Fix undefined host in validate_redirect