From 8e7e3199caff1a994a3a1ab559497b5a20c3e514 Mon Sep 17 00:00:00 2001 From: Kirill Sedunov Date: Tue, 20 Feb 2024 20:58:25 +0300 Subject: [PATCH] chore: Update src/core/xmlHttpRequest.js Co-authored-by: Viktoria <138661057+ViktoriaKh-oat@users.noreply.github.com> Signed-off-by: Kirill Sedunov --- src/core/xmlHttpRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/xmlHttpRequest.js b/src/core/xmlHttpRequest.js index 471e8f3..43406c7 100644 --- a/src/core/xmlHttpRequest.js +++ b/src/core/xmlHttpRequest.js @@ -51,7 +51,7 @@ function xhr(url, options) { break; case XHR_READY_STATE_HEADERS_RECEIVED: request.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((line) => { - const parts = line.split(": "); + const parts = line.split(': '); const header = parts.shift(); const value = parts.join(": "); if (header) {