feat: Create NPM node (#6177)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-05-10 10:37:26 +00:00
committed by GitHub
parent 80831cd7c6
commit f3bc6f19b6
12 changed files with 566 additions and 5 deletions

View File

@@ -791,7 +791,7 @@ 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 (typeof body === 'object' && !isObjectEmpty(body)) {
if (typeof body === 'string' || (typeof body === 'object' && !isObjectEmpty(body))) {
axiosRequest.data = body;
}
}