anchor.diff:  
   %% @doc put an attachment
   %% @spec put_attachment(Db::db(), DocId::string(), Name::string(),
  -%%                      Body::body(), Option::optionList()) -> iolist()
  +%%                      Body::body(), Option::optionList()) -> {ok, iolist()}
   %%       optionList() = [option()]
   %%       option() = {rev, string()} |
   %%                  {content_type, string()} |
  
positive.code: 
  %% @doc fetch a document attachment
  %% @spec fetch_attachment(db(), string(), string(), 
  %%                        list(), infinity|integer()) -> binary()
  fetch_attachment(Db, DocId, Name, Options, Timeout) ->
      {ok, ReqId} = stream_fetch_attachment(Db, DocId, Name, self(), Options,
          Timeout),
  
negative.code:     delete_attachment(Db, Doc, Name, []).
  
  %% @doc delete a document attachment
  %% @spec(db(), string()|list(), string(), list() -> ok 
  delete_attachment(#db{server=Server, options=IbrowseOpts}=Db, DocOrDocId, Name, Options) ->
      Options1 = couchbeam_util:parse_options(Options),
      {Rev, DocId} = case DocOrDocId of
  