Skip to content

Commit

Permalink
Merge pull request #249 from ilia-marchenko/master
Browse files Browse the repository at this point in the history
WAT-3825 - Pass full response on non 2xx response codes
  • Loading branch information
ArtMathArt authored Sep 30, 2024
2 parents 47e2276 + 085d7eb commit e2802ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/types/src/http-api/structs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface IHttpRequest {
headers?: IHttpHeaders;
query?: IHttpQueryParameters;
cookies?: Array<any>;
simple?: boolean;
resolveWithFullResponse?: boolean;
gzip?: boolean;
}
Expand Down
1 change: 1 addition & 0 deletions packages/http-api/src/request-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export async function requestFunction(
headers: request.headers,
json: request.json,
gzip: request.gzip,
simple: request.simple !== false,
jar: cookieJar,
resolveWithFullResponse: true,
};
Expand Down

0 comments on commit e2802ff

Please sign in to comment.