Merge pull request #3849 from pfischermx/master

Send OpenTSDB POST request as urlencoded
This commit is contained in:
Torkel Ödegaard 2016-01-28 09:53:16 -05:00
commit a985f21d44

View File

@ -72,6 +72,9 @@ function (angular, _, dateMath) {
data: reqBody
};
// In case the backend is 3rd-party hosted and does not suport OPTIONS, urlencoded requests
// go as POST rather than OPTIONS+POST
options.headers = { 'Content-Type': 'application/x-www-form-urlencoded' };
return backendSrv.datasourceRequest(options);
};