fix(commvault/commserve): alerts mode - add cache-control header (#2736)
This commit is contained in:
parent
6f55e3bf7e
commit
73f0655de6
|
@ -248,6 +248,7 @@ sub request_internal {
|
||||||
$content = $self->{http}->request(
|
$content = $self->{http}->request(
|
||||||
url_path => $self->{url_path} . $options{endpoint},
|
url_path => $self->{url_path} . $options{endpoint},
|
||||||
get_param => $options{get_param},
|
get_param => $options{get_param},
|
||||||
|
header => $options{header},
|
||||||
warning_status => '',
|
warning_status => '',
|
||||||
unknown_status => '',
|
unknown_status => '',
|
||||||
critical_status => ''
|
critical_status => ''
|
||||||
|
@ -356,7 +357,8 @@ sub request_paging {
|
||||||
while (1) {
|
while (1) {
|
||||||
my $results = $self->request_internal(
|
my $results = $self->request_internal(
|
||||||
endpoint => $options{endpoint},
|
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}};
|
push @$alerts, @{$results->{feedsList}};
|
||||||
|
|
Loading…
Reference in New Issue