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

[HttpClient] Fix Copy as curl with base uri#46665

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

Merged

Conversation

@HypeMC
Copy link
Member

QA
Branch?6.1
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#46583 (comment)
LicenseMIT
Doc PR-

Fixes Copy as curl whenbase_uri is used.

$url =self::mergeQueryString($trace['url'],$trace['options']['query'] ?? [],true);
$url =implode('',self::resolveUrl(
self::parseUrl($trace['url'],$trace['options']['query'] ?? []),
isset($trace['options']['base_uri']) ?self::parseUrl($trace['options']['base_uri']) :null

Choose a reason for hiding this comment

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

I think we should parse $debug instead because options won't always contain the base_uri, when default options are used.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas The problem is that$debug doesn't contain information about which protocol was used in the request, we would still need to get that from$trace['uri'] or$trace['options']['base_uri'] if the former is relative. I'll look into it some more just to be sure I didn't miss anything.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@HypeMCHypeMCforce-pushed thecopy-as-curl-with-base-uri branch 3 times, most recently fromb5c272e to84fc01eCompareJune 18, 2022 22:46
@nicolas-grekasnicolas-grekasforce-pushed thecopy-as-curl-with-base-uri branch from84fc01e to12e40a0CompareJune 19, 2022 13:02
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(I went with an updated implementation that leverages anoriginal_url info)

@nicolas-grekas
Copy link
Member

Thank you@HypeMC.

@nicolas-grekasnicolas-grekas merged commit6b44dc6 intosymfony:6.1Jun 19, 2022
@HypeMCHypeMC deleted the copy-as-curl-with-base-uri branchJune 19, 2022 22:02
@fabpotfabpot mentioned this pull requestJun 26, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

3 participants

@HypeMC@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp