hack to circumvent bug in couchdb replication
headers should be case-insensitive