Skip to content

Correct browser content negotiation formatter selection documentation #36591

@HenryZhang-ZHY

Description

@HenryZhang-ZHY

Description

The documentation incorrectly stated that browser requests return JSON by default. The framework actually uses the first registered output formatter that can handle the response type.

I've created a PR #36586

Page URL

https://learn.microsoft.com/en-us/aspnet/core/web-api/advanced/formatting?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/web-api/advanced/formatting.md

Document ID

1f678d5d-230b-0ad0-c925-15b13081f553

Platform Id

73247564-31a7-9874-1c3d-dc40eabc5891

Article author

@tdykstra

Metadata

  • ID: 6ebcd752-af71-c483-eebb-0745bd04fb30
  • PlatformId: 73247564-31a7-9874-1c3d-dc40eabc5891
  • Service: aspnet-core
  • Sub-service: web-api

Related Issues

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions