Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] Add OPTIONS and TRACE to the list of safe methods#19321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dunglas wants to merge2 commits intosymfony:2.7fromdunglas:update_safe_method

Conversation

@dunglas
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

According toRFC 7231OPTIONS andTRACE are safe methods.

@xabbuh
Copy link
Member

👍

@javiereguiluzjaviereguiluz changed the title[HttpFoundation] Add OTIONS and TRACE to the list of safe methods[HttpFoundation] Add OPTIONS and TRACE to the list of safe methodsJul 9, 2016
publicfunctionmethodProvider()
{
returnarray(
array(Request::METHOD_HEAD,true),

Choose a reason for hiding this comment

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

to be consistent with comments on other PRs, shouldn't we use plain strings here?

Copy link
Member

Choose a reason for hiding this comment

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

👍

@dunglas
Copy link
MemberAuthor

Comments fixed.

@fabpot
Copy link
Member

Thank you@dunglas.

fabpot added a commit that referenced this pull requestJul 10, 2016
… methods (dunglas)This PR was squashed before being merged into the 2.7 branch (closes#19321).Discussion----------[HttpFoundation] Add OPTIONS and TRACE to the list of safe methods| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aAccording to [RFC 7231](https://tools.ietf.org/html/rfc7231#section-8.1.3) `OPTIONS` and `TRACE` are safe methods.Commits-------1404607 [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods
@fabpotfabpot closed thisJul 10, 2016
This was referencedJul 30, 2016
@jameshalsall
Copy link
Contributor

@dunglas what was the reasoning behind this change? it seems like a BC break to me and is causing issues like#19582

@dunglas
Copy link
MemberAuthor

The reasoning is RFC conformance. OPTIONS and TRACE are safe methods according to the specs.

teohhanhui reacted with thumbs up emojiwimleers reacted with thumbs down emoji

@dunglas
Copy link
MemberAuthor

The relevant quote of RFC 7231:

Of the request methods defined by this specification, the GET, HEAD,
OPTIONS, and TRACE methods are defined to be safe.

jameshalsall, OskarStark, jvasseur, and teohhanhui reacted with thumbs up emoji

fabpot added a commit that referenced this pull requestOct 14, 2016
…e (xabbuh)This PR was merged into the 2.7 branch.Discussion----------[HttpFoundation] no 304 response if method is not cacheable| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Since#19321 OPTIONS and TRACE are considered safe methods. But both methods should not lead to "304 Not modified" responses.Commits-------3d6b450 no 304 response if method is not cacheable
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@dunglas@xabbuh@fabpot@jameshalsall@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp