diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs index ff7e8647c..410960122 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs @@ -2161,11 +2161,7 @@ public virtual void sendAdditionalHeaders() return; string safeIECompMode = IE_COMP_Edge.Equals(IE_COMP_EmulateIE7) ? IE_COMP_Edge : IE_COMP_Edge; -#if NETCORE localHttpContext.Response.Headers["X-UA-Compatible"] = "IE=" + safeIECompMode; -#else - localHttpContext.Response.AddHeader("X-UA-Compatible", "IE=" + safeIECompMode); -#endif } } @@ -2173,11 +2169,7 @@ public virtual void sendAdditionalHeaders() protected virtual void sendSpaHeaders() { -#if NETCORE localHttpContext.Response.Headers[GX_SPA_GXOBJECT_RESPONSE_HEADER] = GetPgmname().ToLower(); -#else - localHttpContext.Response.AddHeader(GX_SPA_GXOBJECT_RESPONSE_HEADER, GetPgmname().ToLower()); -#endif } private void webExecuteWorker(object target)