Skip to content

Commit 131e50e

Browse files
authored
Fixing header lookup for perf/consistency (#9776) (#9778)
1 parent 191c4eb commit 131e50e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebJobs.Script/Extensions/HttpRequestExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public static bool IsAppServiceInternalRequest(this HttpRequest request, IEnviro
8686
}
8787

8888
// this header will *always* be present on requests originating externally (i.e. going
89-
// through the Anatares front end). For requests originating internally it will NOT be
89+
// through the Antares front end). For requests originating internally it will NOT be
9090
// present.
91-
return !request.Headers.Keys.Contains(ScriptConstants.AntaresLogIdHeaderName);
91+
return !request.Headers.ContainsKey(ScriptConstants.AntaresLogIdHeaderName);
9292
}
9393

9494
public static bool IsPlatformInternalRequest(this HttpRequest request, IEnvironment environment = null)

0 commit comments

Comments
 (0)