cppsp: fixed bug causing http status code to be retained between requests when keepalive is enabled