anchor.diff:  no_body_method(CliSock, Req, Head) ->
       SC=get(sc),
       ok = yaws:setopts(CliSock, [{packet, raw}, binary], yaws:is_ssl(SC)),
  -    flush(CliSock, Head#headers.content_length),
  -    ARG = make_arg(CliSock, Head, Req, undefined),
  +    flush(CliSock, Head#headers.content_length, Head#headers.transfer_encoding),
  +    Head1 = Head#headers{content_length=undefined, transfer_encoding=undefined},
  +    ARG = make_arg(CliSock, Head1, Req, undefined),
       handle_request(CliSock, ARG, 0).
   
   
  
positive.code: not_implemented(CliSock, Req, Head) ->
      SC=get(sc),
      ok = yaws:setopts(CliSock, [{packet, raw}, binary], yaws:is_ssl(SC)),
      flush(CliSock, Head#headers.content_length),
      deliver_501(CliSock, Req).
  
  
  
negative.code:     false.
  
  
  flush(Sock, Sz, TransferEncoding) ->
      flush(Sock, 0, Sz, TransferEncoding).
  
  flush(Sock, Pos, undefined, "chunked") ->
      SC = get(sc),
      case get_chunked_client_data(Sock, yaws:is_ssl(SC)) of
          {partial, _} -> flush(Sock, Pos, undefined, "chunked");
          _            -> ok
      end;
  flush(_Sock, _Pos, undefined, _) ->
      ok;
  flush(Sock, Pos, Sz, TE) when is_list(Sz) ->
      flush(Sock, Pos, strip_list_to_integer(Sz), TE);
  flush(Sock, Pos, Sz, _) ->
      SC = get(sc),
      flush(Sock, Pos, Sz, yaws:is_ssl(SC), SC#sconf.partial_post_size).
  
  
  flush(_Sock, Sz, Sz, _SSL, _PPS) ->
      ok;
  flush(Sock, Pos, Sz, SSL, PPS) ->
      case yaws:do_recv(Sock, erlang:min(Sz - Pos, PPS), SSL) of
          {ok, Bin} -> flush(Sock, Pos + size(Bin), Sz, SSL, PPS);
          _         -> ok
      end.
  
  
  