Skip to content

Correct browser content negotiation formatter selection documentation#36586

Merged
wadepickett merged 2 commits intodotnet:mainfrom
HenryZhang-ZHY:fix/formatting
Mar 24, 2026
Merged

Correct browser content negotiation formatter selection documentation#36586
wadepickett merged 2 commits intodotnet:mainfrom
HenryZhang-ZHY:fix/formatting

Conversation

@HenryZhang-ZHY
Copy link
Contributor

@HenryZhang-ZHY HenryZhang-ZHY commented Jan 7, 2026

…#1)

* Initial plan

* Update browser content negotiation documentation in formatting.md

- Correct documentation to reflect that the framework selects the first registered output formatter
- Update all three moniker ranges (aspnetcore-6.0, aspnetcore-7.0, and earlier versions)
- Update metadata with ai-usage tag and current date

Co-authored-by: HenryZhang-ZHY <62298214+HenryZhang-ZHY@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: HenryZhang-ZHY <62298214+HenryZhang-ZHY@users.noreply.github.com>
@HenryZhang-ZHY
Copy link
Contributor Author

I've confirmed that the behavior remains consistent from .NET 5.0 to .NET 8.0.

https://github.com/HenryZhang-ZHY/AspNetCore.Docs.36586/tree/main/ContentNegotiationProof

@tdykstra
Copy link
Contributor

tdykstra commented Jan 7, 2026

@HenryZhang-ZHY Thank you for this submission. Before we review and merge it, we need to have an issue that describes what needs to be done. To create the issue by using a template, go to the end of the documentation page you want to update, and use the Open a documentation issue link.

@HenryZhang-ZHY HenryZhang-ZHY changed the title Correct browser content negotiation formatter selection documentation… Correct browser content negotiation formatter selection documentation Jan 8, 2026
@HenryZhang-ZHY
Copy link
Contributor Author

You can check this post to know more context

https://shuzhi.zone/blog/content-negotiation-between-browser-and-asp-net-core/

@HenryZhang-ZHY
Copy link
Contributor Author

@tdykstra PTAL

@wadepickett
Copy link
Contributor

Jumping in to help out...

The issue was created, but not referred to in the description for the PR so there was no link back. So I added in the description above.

Reviewing...

Update the date for formatting documentation.
Copy link
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@wadepickett wadepickett merged commit 325c700 into dotnet:main Mar 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct browser content negotiation formatter selection documentation

4 participants