anchor.diff:          ({{not_found, missing}, RevId}) ->
                RevStr = couch_doc:rev_to_str(RevId),
                Json = ?JSON_ENCODE({[{"missing", RevStr}]}),
  -             couch_httpd:send_chunk(Resp, 
  -                [<<"\r\nContent-Type: application/json; error=\"true\"\r\n\r\n">>, 
  +             couch_httpd:send_chunk(Resp,
  +                [<<"\r\nContent-Type: application/json; error=\"true\"\r\n\r\n">>,
                   Json,
                   <<"\r\n--", OuterBoundary/binary>>])
            end, Results),
  
positive.code:     OuterBoundary = couch_uuids:random(),
      InnerBoundary = couch_uuids:random(),
      Options = [attachments, follows, att_encoding_info | Options1],
      CType = {"Content-Type", 
          "multipart/mixed; boundary=\"" ++ ?b2l(OuterBoundary) ++ "\""},
      {ok, Resp} = start_chunked_response(Req, 200, [CType]),
      couch_httpd:send_chunk(Resp, <<"--", OuterBoundary/binary>>),
  
negative.code:     {Data, fun() -> receive_request_data(Req, LenLeft - iolist_size(Data)) end};
  receive_request_data(_Req, _) ->
      throw(<<"expected more data">>).
  
  make_content_range(From, To, Len) ->
      ?l2b(io_lib:format("bytes ~B-~B/~B", [From, To, Len])).
  
  