Update api taking into account that multiple headers of the same name are not well supported.