Skip to content

Commit bc541d6

Browse files
committed
fix(cdn): make switch for https and forceRedirect to on
1 parent 8457dec commit bc541d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/cdn/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Cdn {
158158
if (Https) {
159159
outputs.https = true;
160160
cdnInputs.Https = {
161-
Switch: Https.Switch,
161+
Switch: Https.Switch || 'on',
162162
Http2: Https.Http2 || 'off',
163163
OcspStapling: Https.OcspStapling || 'off',
164164
VerifyClient: Https.VerifyClient || 'off',
@@ -167,7 +167,7 @@ class Cdn {
167167
}
168168
if (ForceRedirect && Https) {
169169
cdnInputs.ForceRedirect = {
170-
Switch: ForceRedirect.Switch,
170+
Switch: ForceRedirect.Switch || 'on',
171171
RedirectStatusCode: ForceRedirect.RedirectStatusCode || 301,
172172
RedirectType: 'https',
173173
};

0 commit comments

Comments
 (0)