From 668b867333672990818fa93598bc6738b68e5f64 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 26 Apr 2021 09:14:25 +0200 Subject: [PATCH] fix(commvault/commserve): alerts mode - add cache-control header (#2736) --- apps/backup/commvault/commserve/restapi/custom/api.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/backup/commvault/commserve/restapi/custom/api.pm b/apps/backup/commvault/commserve/restapi/custom/api.pm index 1b8737336..17ffc3e3a 100644 --- a/apps/backup/commvault/commserve/restapi/custom/api.pm +++ b/apps/backup/commvault/commserve/restapi/custom/api.pm @@ -248,6 +248,7 @@ sub request_internal { $content = $self->{http}->request( url_path => $self->{url_path} . $options{endpoint}, get_param => $options{get_param}, + header => $options{header}, warning_status => '', unknown_status => '', critical_status => '' @@ -356,7 +357,8 @@ sub request_paging { while (1) { my $results = $self->request_internal( endpoint => $options{endpoint}, - get_param => ['pageNo=' . $page_num, 'pageCount=' . $page_count] + get_param => ['pageNo=' . $page_num, 'pageCount=' . $page_count], + header => ['Cache-Control: private'] ); push @$alerts, @{$results->{feedsList}};