From 4d2b7a5b9ae6baa235d7880bee48a51aa61969b8 Mon Sep 17 00:00:00 2001 From: Roman Morandell <46994680+rmorandell-pgum@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:41:48 +0200 Subject: [PATCH] Fix authorization header --- src/storage/hp/primera/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/hp/primera/restapi/custom/api.pm b/src/storage/hp/primera/restapi/custom/api.pm index 0f22f34b99..1cdef45557 100644 --- a/src/storage/hp/primera/restapi/custom/api.pm +++ b/src/storage/hp/primera/restapi/custom/api.pm @@ -169,7 +169,7 @@ sub request_api { my ($content) = $self->{http}->request( url_path => $options{endpoint}, get_param => $get_param, - header => [ 'Authorization: Bearer ' . $token ], + header => [ 'X-HP3PAR-WSAPI-SessionKey: ' . $token ], unknown_status => '', warning_status => '', critical_status => ''