Keep-alive temporary fix

I am doing what it was done before, Keep-Alive is getting set to Close.This is not the best implementation but it should be good for the assignment.