couchbaselabs/TouchDB-iOS — pull request #128 by robin (2012-08-01 09:59:58+00:00)
Title: allow changes of "headers" and "auth" in replicators

I am using oauth2 to authenticate replications. To achieve that, I set the
'Authorization' header of replicators to 'Bearer '. It works fine
until the access token expires and I want to reset the header with a new
token. The saving is failed and I get a '403 forbidden' error.
I checked the code and found the saving failed because the replicator only
allows some of the properties to change:
NSSet* mutableProperties = [NSSet setWithObjects: @"filter",
@"query_params",
@"heartbeat", @"feed",
nil];

It should be good if we can allow the change of 'headers" and "auth"