Skip to content

Commit

Permalink
Removed Certificate from the Project
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshbxr committed May 31, 2018
1 parent 4c9ec91 commit 2a9b3d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 1 addition & 2 deletions FromExcelToJson/FromExcelToJson.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
<SignManifests>false</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="EPPlus, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL">
Expand Down Expand Up @@ -138,7 +138,6 @@
<Content Include="DMI_IK2UVR.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="FromExcelToJson_TemporaryKey.pfx" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand Down
13 changes: 10 additions & 3 deletions FromExcelToJson/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,16 @@ private HttpResponseMessage CallAPI(string body, string baseURL, string api, str
var validJson = JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(body);
var request = new HttpRequestMessage(HttpMethod.Post, api);
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
var response = client.SendAsync(request).Result;
//var response = client.PostAsJsonAsync(Api, validJson).Result;
return response;
try
{
var response = client.SendAsync(request).Result;
//var response = client.PostAsJsonAsync(Api, validJson).Result;
return response;
}
catch
{
return new HttpResponseMessage(System.Net.HttpStatusCode.InternalServerError);
}
//return $"{baseURL}-{api}-{credentialString}-Post-JSON";
}
}
Expand Down

0 comments on commit 2a9b3d5

Please sign in to comment.