Comparing version 1.0.12 to 1.0.13
@@ -73,8 +73,10 @@ "use strict"; | ||
Config.prototype.getProtocol = function () { | ||
if (this.searchHostType === 'CONSUL' && !this.protocol) { | ||
this.protocol = 'THRIFT'; | ||
if (!this.protocol) { | ||
if (this.searchHostType === 'CONSUL') { | ||
this.protocol = 'THRIFT'; | ||
} | ||
else { | ||
this.protocol = 'HTTP'; | ||
} | ||
} | ||
else { | ||
this.protocol = 'HTTP'; | ||
} | ||
return this.protocol; | ||
@@ -81,0 +83,0 @@ }; |
{ | ||
"name": "kitejs", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "the rpc framework Kite for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -94,6 +94,8 @@ /** | ||
public getProtocol() { | ||
if (this.searchHostType === 'CONSUL' && !this.protocol) { | ||
this.protocol = 'THRIFT'; | ||
} else { | ||
this.protocol = 'HTTP'; | ||
if (!this.protocol) { | ||
if (this.searchHostType === 'CONSUL') { | ||
this.protocol = 'THRIFT'; | ||
} else { | ||
this.protocol = 'HTTP'; | ||
} | ||
} | ||
@@ -100,0 +102,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51885
1353