You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by de...@apache.org on 2016/04/01 23:48:50 UTC

[2/7] lens git commit: LENS-985 : Lens UI module changes after LENS-983

LENS-985 : Lens UI module changes after LENS-983


Project: http://git-wip-us.apache.org/repos/asf/lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/5790fff7
Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/5790fff7
Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/5790fff7

Branch: refs/heads/master
Commit: 5790fff793c4aa5b528a750af5691c5af84157d0
Parents: 1bcdfd1
Author: Ankeet Maini <an...@gmail.com>
Authored: Thu Mar 10 14:40:12 2016 +0530
Committer: Deepak Kumar Barr <de...@gmail.com>
Committed: Thu Mar 10 14:42:40 2016 +0530

----------------------------------------------------------------------
 lens-ui/app/adapters/BaseAdapter.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lens/blob/5790fff7/lens-ui/app/adapters/BaseAdapter.js
----------------------------------------------------------------------
diff --git a/lens-ui/app/adapters/BaseAdapter.js b/lens-ui/app/adapters/BaseAdapter.js
index abe3bcf..a2b12d5 100644
--- a/lens-ui/app/adapters/BaseAdapter.js
+++ b/lens-ui/app/adapters/BaseAdapter.js
@@ -21,6 +21,9 @@ import Config from 'config.json';
 import fetch from 'isomorphic-fetch';
 
 function makeReqwest (url, method, data, options = {}) {
+  if (!options.headers) options.headers = {};
+  options.headers['Accept'] = 'application/json';
+
   return fetch(url, {
     method: method,
     body: data,