Skip to content

Commit

Permalink
Do not append headers for X-GXOBJECT and X-UA-Compatible.
Browse files Browse the repository at this point in the history
X-GXOBJECT is set twice when called from SendHeaders and ValidateSpaRequest from webExecute.
  • Loading branch information
claudiamurialdo committed Jun 7, 2023
1 parent e7e1bb5 commit 780baa1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2161,23 +2161,15 @@ 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
}
}

}

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)
Expand Down

0 comments on commit 780baa1

Please sign in to comment.