mirror of
https://github.com/FriendsOfSymfony/FOSRest.git
synced 2026-03-24 08:42:15 +01:00
[PR #15] [MERGED] Do not return highest priority format immediately when catch-all is dete... #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/FriendsOfSymfony/FOSRest/pull/15
Author: @teohhanhui
Created: 7/9/2013
Status: ✅ Merged
Merged: 7/24/2013
Merged by: @lsmith77
Base:
master← Head:patch-1📝 Commits (2)
89306ddDo not return highest priority format immediately when catch-all is detectedcf699ffUpdate FormatNegotiator.php📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
Util/FormatNegotiator.php(+7 -1)📄 Description
...cted
Related to issue 372 of FOSRestBundle: https://github.com/FriendsOfSymfony/FOSRestBundle/issues/372
From the HTTP/1.1 spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html):
Media ranges can be overridden by more specific media ranges or specific media types. If more than one media range applies to a given type, the most specific reference has precedence. For example,
have the following precedence:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.