Skip to content

Commit 9ddccf0

Browse files
authored
Fix deprecation notice for $http_response_header (#143)
fixes #142
1 parent cf6327a commit 9ddccf0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MatomoTracker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,6 +2129,10 @@ protected function sendRequest(string $url, string $method = 'GET', $data = null
21292129
$response = file_get_contents($url, 0, $ctx);
21302130
$content = $response;
21312131

2132+
if (function_exists('http_get_last_response_headers')) {
2133+
$http_response_header = http_get_last_response_headers();
2134+
}
2135+
21322136
$this->parseIncomingCookies($http_response_header);
21332137
}
21342138

0 commit comments

Comments
 (0)