From 44af7b3ae333d8c5d300cba932cc089eddbbdeaf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 27 Nov 2018 19:02:39 +0100 Subject: [PATCH] RestApiClient: do not send Connection: close... ...just throw away the curl handle. Otherwise Icinga v2.9 fails --- library/Director/Core/RestApiClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Director/Core/RestApiClient.php b/library/Director/Core/RestApiClient.php index 1e886f6a..d8649b7c 100644 --- a/library/Director/Core/RestApiClient.php +++ b/library/Director/Core/RestApiClient.php @@ -95,7 +95,8 @@ class RestApiClient ]; if (! $this->keepAlive) { - $headers[] = 'Connection: close'; + // This fails on Icinga 2.9: + // $headers[] = 'Connection: close'; } if (! $raw) {