Data source proxy: Fixed issue with using data source proxy when grafana is behind nginx suburl, Fixes #1784

This commit is contained in:
Torkel Ödegaard
2015-04-15 15:13:52 +02:00
parent d71b626114
commit 649d40ed66
2 changed files with 1 additions and 4 deletions

View File

@@ -93,10 +93,6 @@ function (angular, _, config) {
var requestIsLocal = options.url.indexOf('/') === 0;
var firstAttempt = options.retry === 0;
if (requestIsLocal && firstAttempt) {
options.url = config.appSubUrl + options.url;
}
return $http(options).then(null, function(err) {
// handle unauthorized for backend requests
if (requestIsLocal && firstAttempt && err.status === 401) {