check if the host http header is actually set or not instead of blindly
merging