fix message.RequestHeaders
This commit is contained in:
parent
2159352daf
commit
3c1f1bba57
|
|
@ -65,7 +65,7 @@ namespace BotSharp.Plugin.Twilio.Services
|
|||
var httpContext = sp.GetRequiredService<IHttpContextAccessor>();
|
||||
httpContext.HttpContext = new DefaultHttpContext();
|
||||
httpContext.HttpContext.User = new ClaimsPrincipal(new ClaimsIdentity());
|
||||
foreach (var header in message.RequestHeaders)
|
||||
foreach (var header in message.RequestHeaders ?? [])
|
||||
{
|
||||
httpContext.HttpContext.Request.Headers[header.Key] = header.Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue