Repository: lens Updated Branches: refs/heads/current-release-line 1bcdfd1ae -> 5790fff79
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/current-release-line Commit: 5790fff793c4aa5b528a750af5691c5af84157d0 Parents: 1bcdfd1 Author: Ankeet Maini <ankeet.ma...@gmail.com> Authored: Thu Mar 10 14:40:12 2016 +0530 Committer: Deepak Kumar Barr <deepak.b...@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,