Skip to content

Get effective accept header

Choose a tag to compare

@g105b g105b released this 09 Jul 17:06
86158ac
  • RouterConfig::defaultContentType is now used when the request Accept header is empty or wildcard-only, such as */*.
  • This allows applications to control the default route preference for clients like curl, while preserving normal content negotiation for explicit browser Accept headers.
  • Added test coverage for wildcard and empty Accept headers defaulting to configured content types.