this is what I get for copy-pasting: https://github.com/pouchdb/pouchdb/blob/master/lib/adapters/http.js#L678