WIP: fix headers handling

- fix email confirmation warning.

Wait to https://github.com/bitpay/copay/issues/1627 to merge this.