http: send connection header properly on last request