Fixes bug with binding http protocol redirect