anchor.diff:      throw(<<"expected more data">>).
   
   make_content_range(From, To, Len) ->
  -    ?l2b(io_lib:format("bytes ~B-~B/~B", [From, To, Len])).
  +    io_lib:format("bytes ~B-~B/~B", [From, To, Len]).
   
   update_doc_result_to_json({{Id, Rev}, Error}) ->
           {_Code, Err, Msg} = couch_httpd:error_info(Error),
  
positive.code:                     [attachments, follows, att_encoding_info | Options])),
              {ContentType, Len} = couch_doc:len_doc_to_multi_part_stream(
                      Boundary,JsonBytes, Atts, true),
              CType = {<<"Content-Type">>, ContentType},
              {ok, Resp} = start_response_length(Req, 200, [CType|Headers], Len),
              couch_doc:doc_to_multi_part_stream(Boundary,JsonBytes,Atts,
                      fun(Data) -> couch_httpd:send(Resp, Data) end, true)
  
negative.code:                     Ranges = parse_ranges(MochiReq:get(range), Len),
                      case {Enc, Ranges} of
                          {identity, [{From, To}]} ->
                              Headers1 = [{"Content-Range", make_content_range(From, To, Len)}]
                                  ++ Headers,
                              {ok, Resp} = start_response_length(Req, 206, Headers1, To - From + 1),
                              couch_doc:range_att_foldl(Att, From, To + 1,
  