aspnetcore
aspnetcore copied to clipboard
Fix for W3C cookie logging
Moves the cookie logging outside of the "RequestHeaders" conditional block so that it can be logged by itself. Previously, cookie values would only be logged if one of the other request headers was also logged, otherwise it would always be logged as a missing field.
Fixes #45212
Thanks for your PR, @MarkPflug. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.
This was updated in https://github.com/dotnet/aspnetcore/pull/45362, including the needed test. Thanks.