Skip to content

Commit dded740

Browse files
committed
Add HTTP-header "Connection: close"
1 parent 72446fa commit dded740

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/App/Bitrix24/Bitrix24API.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Класс Bitrix24API. Выполняет запросы к REST API системы Битрикс24 с использованием механизма входящих вебхуков.
55
*
66
* @author andrey-tech
7-
* @copyright 2019-2021 andrey-tech
7+
* @copyright 2019-2024 andrey-tech
88
* @see https://github.com/andrey-tech/bitrix24-api-php
99
* @license MIT
1010
*
11-
* @version 1.6.0
11+
* @version 1.6.1
1212
*
1313
* v1.0.0 (13.10.2019) Начальный релиз
1414
* v1.1.0 (31.10.2019) Добавлен метод getLastResponse()
@@ -25,6 +25,7 @@
2525
* v1.4.0 (03.02.2021) Добавлены свойства класса, задающие имена полей связанных сущностей
2626
* v1.5.0 (06.02.2021) Изменения для классов: HTTP 3.0 и DebugLogger 2.0; добавлен метод setLogger()
2727
* v1.6.0 (20.02.2021) Добавлены трейты Lead, ProductRow
28+
* v1.6.1 (07.04.2024) Добавлен HTTP-заголовок "Connection: close"
2829
*
2930
*/
3031

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

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

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

0 commit comments

Comments
 (0)