Cleaned references and imports
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using System.Text;
|
||||
|
||||
namespace PWAPPv2.Source.API
|
||||
{
|
||||
@@ -82,7 +78,7 @@ namespace PWAPPv2.Source.API
|
||||
text = sr.ReadToEnd();
|
||||
}
|
||||
}
|
||||
catch(WebException wex)
|
||||
catch (WebException wex)
|
||||
{
|
||||
text = new StreamReader(wex.Response.GetResponseStream()).ReadToEnd();
|
||||
}
|
||||
@@ -100,7 +96,7 @@ namespace PWAPPv2.Source.API
|
||||
|
||||
var response = client.PostAsync(apiUri, contetnt).Result;
|
||||
|
||||
if(response.IsSuccessStatusCode)
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
return response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user