[Kimchi-devel] [PATCH V3 3/4] UI: set kimchi robot header for some request.

Royce Lv lvroyce at linux.vnet.ibm.com
Thu Mar 6 05:02:49 UTC 2014


Reviewed-by: Royce Lv<lvroyce at linux.vnet.ibm.com>
On 2014年03月06日 07:44, shaohef at linux.vnet.ibm.com wrote:
> 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,




More information about the Kimchi-devel mailing list