Fix case where multiple connection headers are send in http