fix(commvault/commserve): alerts mode - add cache-control header (#2736)

This commit is contained in:
qgarnier 2021-04-26 09:14:25 +02:00 committed by GitHub
parent 693cf702e4
commit 668b867333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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}};