Cast exception when pushing attachments during replication

Needed to use the AsDictionary<> extension method to get the
attachments to avoid an exception. (It can’t be cast since that object
is really a JSON object)
Sorry about that.  Fixed.

On Jul 10, 2014, at 12:35 PM, Zachary Gramana <notifications@github.com> wrote:

> In src/Couchbase.Lite.Shared/Replication/Pusher.cs:
> 
> > @@ -357,11 +357,11 @@ private bool UploadMultipartRevision(RevisionInternal revision)
> >              var revProps = revision.GetProperties();
> >              revProps.Put("_revisions", LocalDatabase.GetRevisionHistoryDict(revision));
> >  
> > -            var attachments = (IDictionary<string, object>)revProps.Get("_attachments");
> > +			var attachments = revProps.Get("_attachments").AsDictionary<string,object>;
> Missing the AsDictionary parens.
> 
> —
> Reply to this email directly or view it on GitHub.
>