anchor.diff:  header({http_header, _I, 'Connection', _R, Connection}, Req, State) ->
   	ConnAtom = connection_to_atom(Connection),
   	parse_header(Req#http_req{connection=ConnAtom,
  -		headers=[{'Connection', Connection}|Req#http_req.headers]},
  -		State#state{connection=ConnAtom});
  +		headers=[{'Connection', Connection}|Req#http_req.headers]}, State);
   header({http_header, _I, Field, _R, Value}, Req, State) ->
   	Field2 = format_header(Field),
   	parse_header(Req#http_req{headers=[{Field2, Value}|Req#http_req.headers]},
  
positive.code: 	end.
  
  -spec next_request(any(), #http_req{}, #state{}) -> ok.
  next_request(HandlerState, Req=#http_req{buffer=Buffer}, State) ->
  	HandlerRes = handler_terminate(HandlerState, Req, State),
  	BodyRes = ensure_body_processed(Req),
  	RespRes = ensure_response(Req),
  	case {HandlerRes, BodyRes, RespRes, State#state.connection} of
  		{ok, ok, ok, keepalive} ->
  			?MODULE:parse_request(State#state{
  				buffer=Buffer, req_empty_lines=0});
  
negative.code: 	ConnAtom = version_to_connection(Version),
  	parse_header(#http_req{socket=Socket, transport=Transport,
  		connection=ConnAtom, method=Method, version=Version,
  		path=Path, raw_path=RawPath, raw_qs=Qs}, State);
  request({http_request, Method, '*', Version},
  		State=#state{socket=Socket, transport=Transport}) ->
  	ConnAtom = version_to_connection(Version),
  	parse_header(#http_req{socket=Socket, transport=Transport,
  		connection=ConnAtom, method=Method, version=Version,
  		path='*', raw_path= <<"*">>, raw_qs= <<>>}, State);
  request({http_request, _Method, _URI, _Version}, State) ->
  	error_terminate(501, State);
  request({http_error, <<"\r\n">>},
  