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

Commit 8bcb6f8

Browse files
author
xiandeatintel
authored
Merge pull request #102 from starwarfan/fix-ssl
Fix sending request to https server not work
2 parents daa06ec + 2ccb30f commit 8bcb6f8

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)