Skip to content

Commit

Permalink
chore: Update src/core/xmlHttpRequest.js
Browse files Browse the repository at this point in the history
Co-authored-by: Viktoria <138661057+ViktoriaKh-oat@users.noreply.github.com>
Signed-off-by: Kirill Sedunov <kirill.sedunov@outlook.com>
  • Loading branch information
yukipastelcat and ViktoriaKh-oat authored Feb 20, 2024
1 parent 2b330dc commit 8e7e319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/xmlHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8e7e319

Please sign in to comment.