From 4f7091c5d5e98e82c77712a25f14cce0bf445732 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Thu, 9 Feb 2017 14:28:18 +0000 Subject: [PATCH] Remove "Connection: keep-alive" workaround from domain-task, as it's not needed with .NET Core >= 1.1.0. Fixes #655 --- .../npm/domain-task/package.json | 2 +- .../npm/domain-task/src/fetch.ts | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/package.json b/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/package.json index a030ef5..8014dfd 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/package.json +++ b/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/package.json @@ -1,6 +1,6 @@ { "name": "domain-task", - "version": "2.0.2", + "version": "2.0.3", "description": "Tracks outstanding operations for a logical thread of execution", "main": "index.js", "scripts": { diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/src/fetch.ts b/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/src/fetch.ts index f83dd6d..88b4b17 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/src/fetch.ts +++ b/src/Microsoft.AspNetCore.SpaServices/npm/domain-task/src/fetch.ts @@ -25,15 +25,6 @@ function issueRequest(baseUrl: string, req: string | Request, init?: RequestInit `); } - // Currently, some part of ASP.NET (perhaps just Kestrel on Mac - unconfirmed) doesn't complete - // its responses if we send 'Connection: close', which is the default. So if no 'Connection' header - // has been specified explicitly, use 'Connection: keep-alive'. - init = init || {}; - init.headers = init.headers || {}; - if (!init.headers['Connection']) { - init.headers['Connection'] = 'keep-alive'; - } - return isomorphicFetch(req, init); }