anchor.diff:      check_infinite_response(Vsn, Hdrs),
       read_partial_infinite_body(State, Hdrs, State#client_state.download_window);
   read_partial_body(State, _Vsn, Hdrs, {fixed_length, ContentLength}) ->
  -    read_partial_finite_body(State, Hdrs, ContentLength, 
  +    read_partial_finite_body(State, Hdrs, ContentLength,
           State#client_state.download_window).
  -    
  +
   read_body(_Vsn, Hdrs, Ssl, Socket, chunked) ->
       read_chunked_body(Socket, Ssl, Hdrs, []);
   read_body(Vsn, Hdrs, Ssl, Socket, infinite) ->
  
positive.code:         {error, {http_error, Data}} ->
              erlang:error({bad_trailer, Data})
      end.
      
  read_trailers(Socket, Ssl, Hdrs) ->
      lhttpc_sock:setopts(Socket, [{packet, httph}], Ssl),
      case lhttpc_sock:recv(Socket, Ssl) of
  
negative.code: read_partial_chunked_body(State = #client_state{socket = Socket, ssl = Ssl, 
          part_size = PartSize}, Hdrs, Window, BufferSize, Buffer, 0) -> 
      case read_chunk_size(Socket, Ssl) of
          0 -> 
              send_chunked_body_part(State, Buffer, Window, BufferSize),
              {Trailers, NewHdrs} = read_trailers(Socket, Ssl, [], Hdrs),
              send_end_of_body(State, Trailers, NewHdrs);
          ChunkSize when PartSize =:= infinity ->
              Chunk = read_chunk(Socket, Ssl, ChunkSize),
              NewWindow = send_chunked_body_part(State, [Chunk | Buffer], Window,
                  not_empty),
              read_partial_chunked_body(State, Hdrs, NewWindow, 0, [], 0);
          ChunkSize when BufferSize + ChunkSize >= PartSize ->
              {Chunk, RestChunkSize} = 
                  read_partial_chunk(Socket, Ssl, PartSize - BufferSize, ChunkSize),
              NewWindow = send_chunked_body_part(State, [Chunk | Buffer], Window,
                  not_empty),
              read_partial_chunked_body(State, Hdrs, NewWindow, 0, [], RestChunkSize);
          ChunkSize ->
              Chunk = read_chunk(Socket, Ssl, ChunkSize),
              read_partial_chunked_body(State, Hdrs, Window, BufferSize + ChunkSize,
                  [Chunk | Buffer], 0)
      end;
  read_partial_chunked_body(State = #client_state{socket = Socket, ssl = Ssl,
          part_size = PartSize}, Hdrs, Window, BufferSize, Buffer, 
  