fix(OpenTSDB): correct content-type, fixes #4965

This commit is contained in:
Torkel Ödegaard
2016-08-17 09:42:40 +02:00
parent 0ea3458f69
commit 159ea69e5d
2 changed files with 5 additions and 7 deletions

View File

@@ -129,11 +129,6 @@ function (angular, _, dateMath) {
};
this._addCredentialOptions(options);
// 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);
};