anchor.diff:  %%------------------------------------------------------------------------------
   %% @private
   %%------------------------------------------------------------------------------
  -maybe_close_socket(#client_state{socket = Socket} = State, {1, Minor},
  -                   ReqHdrs, RespHdrs) when Minor >= 1->
  +maybe_close_socket(#client_state{socket = Socket} = State, {1, 1}, ReqHdrs,
  +		   RespHdrs) ->
       ClientConnection = case lists:keyfind(<<"connection">>, 1, ReqHdrs) of
   			   false ->
   			       false;
  
positive.code:         {error, closed} ->
              lhttpc_sock:close(Socket, ProxyIsSsl),
              {{error, proxy_connection_closed},
               State#client_state{socket = undefined, request = undefined}};
          {error, Reason} ->
              {{error, {proxy_connection_failed, Reason}},
               State#client_state{request = undefined}}
      end.
  
  %%------------------------------------------------------------------------------
  
negative.code: 	    NewSocket = maybe_close_socket(State, Vsn, ReqHdrs, NewHdrs),
  	    {noreply,
  	     State#client_state{socket = NewSocket,
  				cookies = FinalCookies}};
  	{error, closed} ->
              % Either we only noticed that the socket was closed after we
  