Skip to content

Commit

Permalink
Add HTTP-header "Connection: close"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-tech committed Apr 7, 2024
1 parent 72446fa commit dded740
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App/Bitrix24/Bitrix24API.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
* Класс Bitrix24API. Выполняет запросы к REST API системы Битрикс24 с использованием механизма входящих вебхуков.
*
* @author andrey-tech
* @copyright 2019-2021 andrey-tech
* @copyright 2019-2024 andrey-tech
* @see https://github.com/andrey-tech/bitrix24-api-php
* @license MIT
*
* @version 1.6.0
* @version 1.6.1
*
* v1.0.0 (13.10.2019) Начальный релиз
* v1.1.0 (31.10.2019) Добавлен метод getLastResponse()
Expand All @@ -25,6 +25,7 @@
* v1.4.0 (03.02.2021) Добавлены свойства класса, задающие имена полей связанных сущностей
* v1.5.0 (06.02.2021) Изменения для классов: HTTP 3.0 и DebugLogger 2.0; добавлен метод setLogger()
* v1.6.0 (20.02.2021) Добавлены трейты Lead, ProductRow
* v1.6.1 (07.04.2024) Добавлен HTTP-заголовок "Connection: close"
*
*/

Expand Down Expand Up @@ -161,7 +162,7 @@ public function request(string $function, array $params = [])
}

// POST запрос
$this->lastResponse = $this->http->request($url, 'POST', $params);
$this->lastResponse = $this->http->request($url, 'POST', $params, [ 'Connection: close' ]);

// Логирование ответа
if (isset($this->logger)) {
Expand Down

0 comments on commit dded740

Please sign in to comment.