diff --git a/src/WebJobs.Script.Grpc/Server/DefaultHttpProxyService.cs b/src/WebJobs.Script.Grpc/Server/DefaultHttpProxyService.cs index 8ee69b5995..f0dd6def77 100644 --- a/src/WebJobs.Script.Grpc/Server/DefaultHttpProxyService.cs +++ b/src/WebJobs.Script.Grpc/Server/DefaultHttpProxyService.cs @@ -81,14 +81,13 @@ public void StartForwarding(ScriptInvocationContext context, Uri httpUri) } HttpContext httpContext = httpRequest.HttpContext; - httpContext.Items[ScriptConstants.HttpProxyingEnabled] = bool.TrueString; // add invocation id as correlation id httpRequest.Headers.TryAdd(ScriptConstants.HttpProxyCorrelationHeader, context.ExecutionContext.InvocationId.ToString()); var forwardingTask = _httpForwarder.SendAsync(httpContext, httpUri.ToString(), _messageInvoker, _forwarderRequestConfig).AsTask(); - context.Properties.Add(ScriptConstants.HttpProxyTask, forwardingTask); + context.Properties[ScriptConstants.HttpProxyTask] = forwardingTask; } } }