Skip to content

Commit b2d6b85

Browse files
committed
fix: explicit undefined option exclusion.
1 parent 189efa5 commit b2d6b85

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/common/http-client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class HttpClient implements Server.IHttpClient {
125125
if (Number.isFinite(options.maxRedirects)) {
126126
httpOptions.maxRedirects = options.maxRedirects;
127127
}
128-
if (options.validateStatus) {
128+
if (options.validateStatus !== undefined) {
129129
httpOptions.validateStatus = options.validateStatus;
130130
}
131131

‎lib/services/apple-portal/apple-portal-session-service.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ For more details how to set up your environment, please execute "ns publish ios
238238
url: this.logoutEndpoint,
239239
method: "HEAD",
240240
maxRedirects: 0,
241-
validateStatus: () => true,
241+
validateStatus: () => true, // purposfully do not want to follow redirects or fail on error codes.
242242
});
243243
const location = logoutResponse?.headers?.location;
244244
if (location) {

0 commit comments

Comments
 (0)