Skip to content

Commit ba51549

Browse files
committed
fix(apigw): set protocol default to http
1 parent 7489e32 commit ba51549

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/apigw/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class Apigw {
1616
}
1717

1818
getProtocolString(protocols) {
19+
if (!protocols || protocols.length < 1) {
20+
return 'http';
21+
}
1922
const tempProtocol = protocols.join('&').toLowerCase();
2023
return tempProtocol === 'https&http'
2124
? 'http&https'

0 commit comments

Comments
 (0)