[Kimchi-devel] [PATCH V2 2/2] UI: set kimchi robot header for some request.
shaohef at linux.vnet.ibm.com
shaohef at linux.vnet.ibm.com
Tue Mar 4 09:45:48 UTC 2014
From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Then session will expire when these request access periodically.
Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
---
ui/js/src/kimchi.api.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index fdd9cfc..c93426f 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -84,6 +84,7 @@ var kimchi = {
type : 'GET',
resend: true,
contentType : 'application/json',
+ headers: {'Kimchi-Robot': 'kimchi-robot'},
dataType : 'json',
success : suc,
error: err
@@ -335,6 +336,7 @@ var kimchi = {
url : kimchi.url + 'vms',
type : 'GET',
contentType : 'application/json',
+ headers: {'Kimchi-Robot': 'kimchi-robot'},
dataType : 'json',
resend: true,
success : suc,
--
1.8.4.2
More information about the Kimchi-devel
mailing list