Fix dicsonnection error for strange HTTP clients.