superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: remove hard code http scheme of short url #4656 (#4886)
Date Fri, 27 Apr 2018 15:41:57 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 510ae84  remove hard code http scheme of short url #4656 (#4886)
510ae84 is described below

commit 510ae84b3b3c3880393b84ba1db6d9979ecb63e0
Author: Jules <jls.lebris@gmail.com>
AuthorDate: Fri Apr 27 17:41:54 2018 +0200

    remove hard code http scheme of short url #4656 (#4886)
    
    * remove hard code http scheme of short url #4656
    
    * remove space
    
    * add space
    
    * remove temp var
---
 superset/views/core.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index f66b70e..b60d91c 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -749,8 +749,8 @@ class R(BaseSupersetView):
         db.session.add(obj)
         db.session.commit()
         return Response(
-            'http://{request.headers[Host]}/{directory}?r={obj.id}'.format(
-                request=request, directory=directory, obj=obj),
+            '{scheme}://{request.headers[Host]}/{directory}?r={obj.id}'.format(
+                scheme=request.scheme, request=request, directory=directory, obj=obj),
             mimetype='text/plain')
 
     @expose('/msg/')

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message