Skip to content

Commit

Permalink
Fix to use current location protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarence Davis committed Jan 22, 2016
1 parent 01115da commit 659008d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/configuration/ConfigService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config.headers['X-CSRFToken'] = service_.csrfToken;
}
if (goog.isDefAndNotNull(config) && goog.isDefAndNotNull(config.url) && config.url.indexOf('http') === 0 &&
config.url.indexOf('http://' + $location.host()) !== 0) {
config.url.indexOf($location.protocol() + '://' + $location.host()) !== 0) {
var server = service_.getServerByURL(config.url);
if (goog.isDefAndNotNull(server)) {
if (!goog.isDefAndNotNull(server.authentication)) {
Expand Down

0 comments on commit 659008d

Please sign in to comment.