fix couchdb headers