Commit 33d058c8 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch '1874-ie-approvers-undefined-json-request' into 'master'

Fix approvals request throwing 400 in IE 11

Closes #1874

See merge request !2306
parents 074b1086 a4787fa0
......@@ -6,7 +6,13 @@ export default class MRWidgetService extends CEWidgetService {
constructor(mr) {
super(mr);
this.approvalsResource = Vue.resource(mr.approvalsPath);
// Set as a text/plain request so BE doesn't try to parse
// See https://gitlab.com/gitlab-org/gitlab-ce/issues/34534
this.approvalsResource = Vue.resource(mr.approvalsPath, {}, {}, {
headers: {
'Content-Type': 'text/plain',
},
});
this.rebaseResource = Vue.resource(mr.rebasePath);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment