You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a null check in ResolveHasInvalidAntiforgeryValidationFeature() (#53208)
* Added a null check in ResolveHasInvalidAntiforgeryValidationFeature()
* Added braces to the if statement
* Changed the null annotation for the _request field and some logic to handle it
* Fix bug in ContentType property getter
* Further tuning of the ContentType property getter and added a check in ReadFormAsync() to guard against _request equal to null
* Improved the _request null check
* Improved handling of content type and also changed the logic a bit
* Made some smaller changes based on comments received. _formContentType will now be set to null if Form is set to null.
* Update src/Http/Http/src/Features/FormFeature.cs
Co-authored-by: Andrew Casey <[email protected]>
* Apply suggestions from code review
Co-authored-by: Andrew Casey <[email protected]>
---------
Co-authored-by: Andrew Casey <[email protected]>
0 commit comments