From c11c2d0fd46fbe2e74ff7fe2ff7205c5cb38ea9f Mon Sep 17 00:00:00 2001
From: Tom Needham <tom@owncloud.com>
Date: Wed, 1 Aug 2012 13:39:05 +0000
Subject: [PATCH] Logout the user at the end of a call to be stateless

---
 lib/api.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/api.php b/lib/api.php
index a11dde1c6b..454a6fd26d 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -77,6 +77,8 @@ class OC_API {
 		} else {
 			self::respond($response);
 		}
+		// logout the user to be stateles
+		OC_User::logout();
 	}
 	
 	/**
-- 
GitLab