Workaround for EUCA-4740 to remove duplicate header values

Only removes anything if they are the exact same. This is
not intended to be a permanent solution.