def test_Host_header_overwrite(httpbin):
    """
    https://github.com/httpie/cli/issues/235

    """
    host = 'pie.dev'
    url = httpbin + '/get'
    r = http('--print=hH', url, f'host:{host}')
    assert HTTP_OK in r
    assert r.lower().count('host:') == 1
    assert f'host: {host}' in r

    https://github.com/httpie/cli/issues/235

    
tests/test_regressions.py