Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 2ccb30f

Browse files
committed
Fix sending request to https server not work
1 parent 2372a74 commit 2ccb30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdk/rest/API.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ OWT_REST.API = (function(OWT_REST) {
5959

6060
function send (method, resource, body, onOK, onError) {
6161
var url = Url.parse(params.url + resource);
62-
var ssl = (url.protocol === 'https' ? true : false);
62+
var ssl = (url.protocol === 'https:' ? true : false);
6363
var timestamp = new Date().getTime();
6464
var cnounce = require('crypto').randomBytes(8).toString('hex');
6565
var toSign = timestamp + ',' + cnounce;

0 commit comments

Comments
 (0)