anchor.diff:                undefined ->
                     case Head#headers.transfer_encoding of
                         "chunked" ->
  -                          get_chunked_client_data(CliSock, [],
  -                                                  yaws:is_ssl(SC));
  +                          get_chunked_client_data(CliSock, yaws:is_ssl(SC));
                         _ ->
                             <<>>
                                 end;
  
positive.code:     end.
  
  %% not nice to support this for ssl sockets
  get_chunked_client_data(CliSock,Bs,SSL) ->
      yaws:setopts(CliSock, [binary, {packet, line}],SSL),
      N = yaws:get_chunk_num(CliSock,SSL),
      yaws:setopts(CliSock, [binary, {packet, raw}],SSL),
      if
          N == 0 ->
              _Tmp=yaws:do_recv(CliSock, 2, SSL),%% flush last crnl
              list_to_binary(Bs);
          true ->
              B = yaws:get_chunk(CliSock, N, 0,SSL),
              yaws:eat_crnl(CliSock,SSL),
              get_chunked_client_data(CliSock, [Bs,B], SSL)
      end.
  
  %% Return values:
  
negative.code: get_more_post_data(PPS, ARG) ->
      SC = get(sc),
      N = SC#sconf.partial_post_size,
      case (ARG#arg.headers)#headers.content_length of
          undefined ->
              case (ARG#arg.headers)#headers.transfer_encoding of
                  "chunked" ->
                      get_chunked_client_data(ARG#arg.clisock, yaws:is_ssl(SC));
                  _  ->
                      <<>>
              end;
          Len ->
              Int_len = list_to_integer(Len),
              if N + PPS < Int_len ->
                      Bin = get_client_data(ARG#arg.clisock, N, yaws:is_ssl(SC)),
                      {partial, Bin};
                 true ->
                      get_client_data(ARG#arg.clisock, Int_len - PPS,
                                      yaws:is_ssl(SC))
              end
      end.
  
  
  