1 parent 8502560 commit d510dcfCopy full SHA for d510dcf
1 file changed
src/Client.php
@@ -99,7 +99,7 @@ public function call(RpcRequestInterface $request)
99
$this->getDispatcher()->dispatch(Events::HTTP_REQUEST, new HttpRequestEvent($httpRequest));
100
101
$httpResponse = $this->getTransport()->call($httpRequest);
102
- $this->getDispatcher()->dispatch(Events::HTTP_REQUEST, new HttpResponseEvent($httpRequest, $httpResponse));
+ $this->getDispatcher()->dispatch(Events::HTTP_RESPONSE, new HttpResponseEvent($httpRequest, $httpResponse));
103
104
$response = $protocol->createRpcResponse($httpResponse);
105
$this->getDispatcher()->dispatch(Events::RPC_RESPONSE, new RpcResponseEvent($request, $response));
0 commit comments