Process "Connection: close" header in non-JSON requests