anchor.diff:  
   % Attachment request handlers
   
  -db_attachment_req(#httpd{method='GET'}=Req, Db, DocId, FileName) ->
  +db_attachment_req(#httpd{method='GET'}=Req, Db, DocId, FileNameParts) ->
  +    FileName = list_to_binary(mochiweb_util:join(lists:map(fun binary_to_list/1, FileNameParts),"/")),
       case couch_db:open_doc(Db, DocId, []) of
       {ok, #doc{attachments=Attachments}} ->
           case proplists:get_value(FileName, Attachments) of
  
positive.code: db_req(#httpd{path_parts=[_,<<"_admins">>]}=Req, _Db) ->
      send_method_not_allowed(Req, "PUT,GET");
  
  db_req(#httpd{method='POST',path_parts=[DbName,<<"_design">>,Name|Rest]}=Req,
          Db) ->
      % Special case to enable using an unencoded in the URL of design docs, as
      % slashes in document IDs must otherwise be URL encoded
  
negative.code:         {rev, UpdatedRev}
      ]});
  
  db_attachment_req(Req, _Db, _DocId, _FileNameParts) ->
      send_method_not_allowed(Req, "DELETE,GET,HEAD,PUT").
  
  
  