HttpClient call doesn't use the updated command

Created on 29 March 2024, 3 months ago
Updated 12 April 2024, 2 months ago

Problem/Motivation

The call method dispatches an event (http_client.call_pre_execute) to let other modules interacting with client and command variables. The problem is that when the client executes the command, we are not using the updated version of either client and command variables.

Steps to reproduce

Subscribe to the http_client.call_pre_execute event and modify the client or the command. Nothing will happen.

Proposed resolution

Use the $event->client and $event->command variables instead of $client and $command.

API changes

After this change the "onDataIntegrityCheck" method of the "HttpClientManagerSubscriber" will start working properly again. Please double check nothing changed on your service requests.

🐛 Bug report
Status

Fixed

Version

9.3

Component

Code

Created by

🇮🇹Italy aronne

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

Comments & Activities

Production build 0.69.0 2024