RestApiClient: do not send Connection: close...

...just throw away the curl handle. Otherwise Icinga v2.9 fails
This commit is contained in:
Thomas Gelf 2018-11-27 19:02:39 +01:00
parent b644a7c6a7
commit 44af7b3ae3
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class RestApiClient
];
if (! $this->keepAlive) {
$headers[] = 'Connection: close';
// This fails on Icinga 2.9:
// $headers[] = 'Connection: close';
}
if (! $raw) {