Skip to content

Commit

Permalink
⚡ Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 authored and MiloradFilipovic committed May 16, 2022
1 parent cece563 commit 9944d98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ function convertN8nRequestToAxios(n8nRequest: IHttpRequestOptions): AxiosRequest
};
}

// if there is a body and it's empty (does not have properties),
// make sure not to send anything in it as some services fail when
// sending GET request with empty body.
if (n8nRequest.body && Object.keys(n8nRequest.body).length) {
axiosRequest.data = n8nRequest.body;
// Let's add some useful header standards here.
Expand Down

0 comments on commit 9944d98

Please sign in to comment.