[Kimchi-devel] [PATCH] [Wok 1/3] Add wok-robot header to /notifications requests

Aline Manera alinefm at linux.vnet.ibm.com
Wed May 4 16:58:06 UTC 2016


Periodic requests made by UI must contain the wok-robot header to do not
restart the user session counting down.
Without the header, the user session is refreshed on each /notifications
request and will never expire.

It closes issue https://github.com/kimchi-project/kimchi/issues/376

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 ui/js/src/wok.api.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/js/src/wok.api.js b/ui/js/src/wok.api.js
index 56e90ed..5238594 100644
--- a/ui/js/src/wok.api.js
+++ b/ui/js/src/wok.api.js
@@ -63,6 +63,7 @@ var wok = {
         wok.requestJSON({
             url: 'notifications',
             type : 'GET',
+            headers: {'Wok-Robot': 'wok-robot'},
             dataType : 'json',
             success : suc,
             error: err
-- 
2.5.5




More information about the Kimchi-devel mailing list