Set Host header based on actual input

Fixes #1