Skip to content

Commit 846a3b1

Browse files
committed
Protocol configuration added
1 parent d60fa7e commit 846a3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/contentstackHTTPClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function contentstackHttpClient (options) {
3838
config.headers['accessToken'] = config.accessToken
3939
}
4040

41-
const protocol = 'https'
41+
const protocol = config.insecure ? 'http' : 'https'
4242
let hostname = config.defaultHostName
4343
let port = 443
4444
const version = 'v3'

0 commit comments

Comments
 (0)