Skip to content

[Issue] [Framework] Fixed getHeader for returning default value if requested missing #32521

Open
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #32520: [Framework] Fixed getHeader for returning default value if requested missing


…header midding

Description (*)

getHeader function allow to provider default value parameter, but this value never return back

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. Create controller action class
  2. Try to receive header value for missing header $this->getRequest()->getHeader('test-header', 'test-value')

Expected result

test-value should be returned

Actual result result

false returned

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Area: FrameworkComponent: HTTPIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Pull Request In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions