Skip to content

Commit 3cd3ff3

Browse files
claudiamurialdoBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:fix/IsCrawlerRequest' into beta
1 parent 9daf54b commit 3cd3ff3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,11 +1290,24 @@ public bool IsForward()
12901290
{
12911291
if (_HttpContext != null)
12921292
{
1293+
#if NETCORE
1294+
object callMethodObj;
1295+
if (_HttpContext.Items.TryGetValue("gx_webcall_method", out callMethodObj))
1296+
{
1297+
1298+
string callMethod = callMethodObj as string;
1299+
if (!string.IsNullOrEmpty(callMethod) && (string.Compare(callMethod, "forward", true) == 0))
1300+
{
1301+
return true;
1302+
}
1303+
}
1304+
#else
12931305
string callMethod = (string)_HttpContext.Items["gx_webcall_method"];
12941306
if ((callMethod != null) && (string.Compare(callMethod, "forward", true) == 0))
12951307
{
12961308
return true;
12971309
}
1310+
#endif
12981311
}
12991312
return false;
13001313
}

0 commit comments

Comments
 (0)