Permalink
Browse files

Implementing MeniroDevs fix to get rid of the random characters in ev…

…ent descriptions
  • Loading branch information...
1 parent 418a67a commit 2db8db40dc04a8f21f884355fb20e521208012fa @penguinboy committed Oct 24, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 HttpApi/RequestBase.cs
View
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Text;
using System.Net;
+using System.IO;
namespace EventbriteNET.HttpApi
{
@@ -69,8 +70,13 @@ public RequestBase RemoveGet(string key)
public string GetResponse()
{
- var client = new WebClient();
- return client.DownloadString(this.Url);
+ HttpWebRequest request = (HttpWebRequest)
+ WebRequest.Create(this.Url);
+ HttpWebResponse response = (HttpWebResponse)
+ request.GetResponse();
+ Stream stream = response.GetResponseStream();
+ StreamReader sr = new StreamReader(stream);
+ return sr.ReadToEnd();
}
}

0 comments on commit 2db8db4

Please sign in to comment.