mirror of
https://github.com/grafana/grafana.git
synced 2025-01-10 08:03:58 -06:00
Merge pull request #3849 from pfischermx/master
Send OpenTSDB POST request as urlencoded
This commit is contained in:
commit
a985f21d44
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user