Options in HttpRequest are ignored

Created on 16 October 2024, 2 months ago

When trying to create a new HttpRequest if you define Headers in the header field and/or Cookies in the the Cookie fields and then you define more headers/cookies/json in the options field as you can with Guzzle options those defined in the options section are ignored due to the type merging.

Suggestion is to use Drupal\Component\Utility\NestedArrays::mergeDeep for those options instead so that they can both be merged together.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sean_e_dietrich Sacramento, CA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024