aspnet / AspNetKatana

Microsoft's OWIN implementation, the Katana project
Apache License 2.0
967 stars 333 forks source link

Update SendingHeadersEvent.cs #513

Closed Tratcher closed 1 year ago

Tratcher commented 1 year ago

@jthorpe80 mitigates #511(?)

The user is getting a null ref in this method and a null callback seems like the only way for that to happen. I don't want to add an argument null exception in Register at this point since that would just break them in a different way, even if it would help find the real culprit.

(Created on the web, need to make sure this syntax compiles in this old repo).