From 28f99a8bf30c3af3741fa25197a2a310620d1957 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Mon, 24 Jun 2024 18:22:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F8-56523=20=D0=98=D0=B7=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=D1=81=D1=8F=20=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8?= =?UTF-8?q?=20HTTP-=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BA=D0=B0?= =?UTF-8?q?=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=BE=D0=BC=20=D0=94?= =?UTF-8?q?=D0=B8=D0=B0=D0=B4=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/diadoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/diadoc.js b/modules/diadoc.js index 1a474cd..54915e4 100644 --- a/modules/diadoc.js +++ b/modules/diadoc.js @@ -116,9 +116,9 @@ const checkAPIClientId = sAPIClientId => { //Формиорвание заголовка сообщения const buildHeaders = (sAPIClientId, sToken = null) => ({ - "Content-type": "application/json; charset=utf-8", + "Content-type": "application/json", Authorization: `DiadocAuth ddauth_api_client_id=${sAPIClientId}${sToken ? `,ddauth_token=${sToken}` : ""}`, - Accept: "application/json; charset=utf-8" + Accept: "application/json" }); //Отбор организций