Skip to content

Commit

Permalink
Fixed html encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Quinet committed Mar 22, 2017
1 parent c7dadea commit 2889c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
2 changes: 2 additions & 0 deletions QnaMakerClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -329,6 +330,7 @@ private async Task<string> Send(HttpMethod method, string url, object data = nul
private async Task<T> GetResponseContent<T>(HttpResponseMessage response)
{
var content = await response.Content.ReadAsStringAsync();
content = WebUtility.HtmlDecode(content);
if (response.IsSuccessStatusCode)
{
return JsonConvert.DeserializeObject<T>(content);
Expand Down

0 comments on commit 2889c71

Please sign in to comment.