Skip to content

Commit d510dcf

Browse files
committed
add major event dispatching fix
1 parent 8502560 commit d510dcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function call(RpcRequestInterface $request)
9999
$this->getDispatcher()->dispatch(Events::HTTP_REQUEST, new HttpRequestEvent($httpRequest));
100100

101101
$httpResponse = $this->getTransport()->call($httpRequest);
102-
$this->getDispatcher()->dispatch(Events::HTTP_REQUEST, new HttpResponseEvent($httpRequest, $httpResponse));
102+
$this->getDispatcher()->dispatch(Events::HTTP_RESPONSE, new HttpResponseEvent($httpRequest, $httpResponse));
103103

104104
$response = $protocol->createRpcResponse($httpResponse);
105105
$this->getDispatcher()->dispatch(Events::RPC_RESPONSE, new RpcResponseEvent($request, $response));

0 commit comments

Comments
 (0)