Skip to content

Commit

Permalink
HttpResponse removed from http lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 3, 2024
1 parent 80c37c6 commit 7aa9581
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rest/RestClient.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7aa9581

Please sign in to comment.