U4-11570 - changed WebClient() from created inside of using to check if null and then creating it

This commit is contained in:
RaduOrleanu
2018-08-18 20:21:24 +02:00
parent 03e642fced
commit 07e5161988
6 changed files with 37 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Net;
using System.Web;
using System.Web.Security;
using Umbraco.Core;
@@ -80,7 +81,7 @@ namespace Umbraco.Web.Install.InstallSteps
{
try
{
var client = new System.Net.WebClient();
var client = new WebClient();
var values = new NameValueCollection { { "name", admin.Name }, { "email", admin.Email} };
client.UploadValues("https://shop.umbraco.com/base/Ecom/SubmitEmail/installer.aspx", values);
}