From 7aa958112a24204cf46ee1e1e78b11294dcde5fd Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Fri, 3 May 2024 09:05:58 +0200 Subject: [PATCH] HttpResponse removed from http lib --- src/rest/RestClient.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rest/RestClient.hx b/src/rest/RestClient.hx index 6a1add4..167598a 100644 --- a/src/rest/RestClient.hx +++ b/src/rest/RestClient.hx @@ -89,11 +89,11 @@ class RestClient { httpRequest.body = request.body; return new Promise((resolve, reject) -> { - httpClient.makeRequest(httpRequest).then(httpResult -> { + httpClient.makeRequest(httpRequest).then(httpResponse -> { var restResponse = new RestResponse(); - restResponse.httpStatus = httpResult.response.httpStatus; - restResponse.headers = httpResult.response.headers; - restResponse.body = httpResult.response.body; + restResponse.httpStatus = httpResponse.httpStatus; + restResponse.headers = httpResponse.headers; + restResponse.body = httpResponse.body; resolve(new RestResult(this, restResponse)); }, (httpError:HttpError) -> { var restError = new RestError(httpError);