You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xh...@apache.org on 2019/06/14 20:31:48 UTC

[incubator-pinot] branch master updated: [TE] Revert HTTPS redirect (#4316)

This is an automated email from the ASF dual-hosted git repository.

xhsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new fc4165d  [TE] Revert HTTPS redirect (#4316)
fc4165d is described below

commit fc4165d77437ccb19e4b7fca7c80e49079afe6e4
Author: Xiaohui Sun <xh...@linkedin.com>
AuthorDate: Fri Jun 14 13:31:43 2019 -0700

    [TE] Revert HTTPS redirect (#4316)
---
 thirdeye/thirdeye-frontend/app/pods/application/route.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/thirdeye/thirdeye-frontend/app/pods/application/route.js b/thirdeye/thirdeye-frontend/app/pods/application/route.js
index e45b30c..0e289e3 100644
--- a/thirdeye/thirdeye-frontend/app/pods/application/route.js
+++ b/thirdeye/thirdeye-frontend/app/pods/application/route.js
@@ -23,9 +23,10 @@ export default Route.extend(ApplicationRouteMixin, {
     // calling this._super to trigger ember-simple-auth's hook
     this._super(...arguments);
 
-    if (config.environment === 'production' && location.protocol != 'https:') {
-      location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
-    }
+    // TODO: Evaluate how to get the environment without ember-cli running in backend.
+    // if (config.environment === 'production' && location.protocol != 'https:') {
+    //   location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
+    // }
 
     // invalidates session if cookie expired
     if (this.get('session.isAuthenticated')) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org