You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2019/06/28 15:24:22 UTC

[incubator-superset] branch master updated: Change kv content-type to text/plain (#7467)

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

villebro 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 4740086  Change kv content-type to text/plain (#7467)
4740086 is described below

commit 4740086bd7ef78989dd8fce28fe5e3317f1ef6c3
Author: Rahul Rahul <42...@users.noreply.github.com>
AuthorDate: Fri Jun 28 10:24:11 2019 -0500

    Change kv content-type to text/plain (#7467)
    
    * Change kv content-type to text/plain
    
    * use single quote to fix linter errors
---
 superset/views/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 9e4cb0b..cc0690b 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -959,7 +959,7 @@ class KV(BaseSupersetView):
             kv = db.session.query(models.KeyValue).filter_by(id=key_id).one()
         except Exception as e:
             return json_error_response(e)
-        return Response(kv.value, status=200)
+        return Response(kv.value, status=200, content_type='text/plain')
 
 
 appbuilder.add_view_no_menu(KV)