mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Only add InternalStageAuthToken
if URI isn't pointing to a file
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
732d1f4a30
commit
a888ed9274
@ -343,11 +343,8 @@ namespace XenAdmin.Actions
|
||||
{
|
||||
var checkForUpdatesXml = new XmlDocument();
|
||||
var checkForUpdatesUrl = XenAdminConfigManager.Provider.GetCustomUpdatesXmlLocation() ?? BrandManager.UpdatesUrl;
|
||||
var authToken = XenAdminConfigManager.Provider.GetInternalStageAuthToken();
|
||||
var uriBuilder = new UriBuilder(checkForUpdatesUrl);
|
||||
|
||||
uriBuilder.Query = AddAuthTokenToQueryString(authToken, uriBuilder.Query);
|
||||
|
||||
var uri = uriBuilder.Uri;
|
||||
if (uri.IsFile)
|
||||
{
|
||||
@ -355,7 +352,9 @@ namespace XenAdmin.Actions
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var authToken = XenAdminConfigManager.Provider.GetInternalStageAuthToken();
|
||||
uriBuilder.Query = AddAuthTokenToQueryString(authToken, uriBuilder.Query);
|
||||
|
||||
var proxy = XenAdminConfigManager.Provider.GetProxyFromSettings(Connection, false);
|
||||
|
||||
using (var webClient = new WebClient())
|
||||
|
Loading…
Reference in New Issue
Block a user