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

Appearance settings

HttpClient panel in the Web Profiler not displaying all request headers #43348

Copy link
Copy link
Closed
@ankahla

Description

@ankahla
Issue body actions

Symfony version(s) affected: 5.3.2

Description
As menstionned here #33311 (comment) guzzle output the request headers (including default headers in configuration).
Unfortunatly even with this PR #35407 we still not collecting all headers : headers defined in configuration are missing!

How to reproduce

#config/packages/framework.yaml
http_client:
        default_options:
            headers:
                Accept: application/json
                User-Agent: "app_web"
        scoped_clients:
            http.client.api:
                base_uri: '%api_uri%'
                headers:
                    CustomHeader: "%api_host%"

Possible Solution
Exposing $defaultHeaders attribute and get it from HttpClientTrait directly as an attribute.

Additional context
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.