Skip to content

Commit 2594877

Browse files
committed
fix (ajax_for_node) invalid hostname and port for requests
1 parent 692ae9a commit 2594877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/backendless.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@
395395
var https = u.protocol === 'https:';
396396

397397
var options = {
398-
host : u.host,
399-
port : u.port || https ? 443 : 80,
398+
host : u.hostname,
399+
port : u.port || (https ? 443 : 80),
400400
method : config.method || "GET",
401401
path : u.path,
402402
headers: {

0 commit comments

Comments
 (0)