anchor.diff:      {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])).
   
  
positive.code:                             _Else ->
                                  ok
                          end,
                          
                          
                          fun(Size) -> couch_httpd:recv(Req, Size) end
                      end,
                  att_len = case couch_httpd:header_value(Req,"Content-Length") of
  
negative.code: 
  db_doc_req(#httpd{method='PUT'}=Req, Db, DocId) ->
      couch_doc:validate_docid(DocId),
  
      case couch_util:to_list(couch_httpd:header_value(Req, "Content-Type")) of
      ("multipart/related;" ++ _) = ContentType ->
          {ok, Doc0, WaitFun, Parser} = couch_doc:doc_from_multi_part_stream(
  