You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/04/25 13:24:49 UTC

[GitHub] ripoul commented on issue #4656: the schema of short url is hard code to http

ripoul commented on issue #4656: the schema of short url is hard code to http
URL: https://github.com/apache/incubator-superset/issues/4656#issuecomment-384285151
 
 
   this code should do the work :
   
   `scheme = request.scheme
    return Response(
               '{scheme}://{request.headers[Host]}/{directory}?r={obj.id}'.format(
                scheme = scheme, request=request, directory=directory, obj=obj),
               mimetype='text/plain')
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services