Skip to content

Commit

Permalink
🎨 Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Oct 19, 2022
1 parent c7bc850 commit 4ab8204
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import {

import { OptionsWithUri } from 'request-promise-native';

import { binaryContentTypes, getOAuth2AdditionalParameters, replaceNullValues } from '../GenericFunctions';
import {
binaryContentTypes,
getOAuth2AdditionalParameters,
replaceNullValues,
} from '../GenericFunctions';
export class HttpRequestV3 implements INodeType {
description: INodeTypeDescription;

Expand Down Expand Up @@ -1208,9 +1212,7 @@ export class HttpRequestV3 implements INodeType {
if (responseContentType.includes('application/json')) {
responseFormat = 'json';
response.body = JSON.parse(Buffer.from(response.body).toString());
} else if (
binaryContentTypes.some((e) => responseContentType.includes(e))
) {
} else if (binaryContentTypes.some((e) => responseContentType.includes(e))) {
responseFormat = 'file';
} else {
responseFormat = 'text';
Expand Down

0 comments on commit 4ab8204

Please sign in to comment.