pouchdb/express-pouchdb — pull request #125 by yaronyg (2014-11-13 02:28:59+00:00)
Title: proxy is not honored on _replicate requests

Who cares?
I'm trying to debug PouchDB's replication behavior versus CouchDB's. I'd like to be able to capture both of their behavior using fiddler so I can easily compare, contrast, etc. The proxy option lets me do that.
Oh, and it is in the standard and is supported by CouchDB so it's not bad, right?

Why is the change so complicated?
Because of what I think is a bug in PouchDB, which is that it only honors ajax when you create a new PouchDB object. It really should honor it on replicates too.

Are you sure this code works?
Heck no! What are we supposed to test this against? A change like this without testing seems rather foolish. So I'm mostly waiting to be told where I should put those tests. I didn't see any in this project. Once it's tested I'll resubmit with both the inevitable bug fixes as well as whatever style guide violations are here fixed.