Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ent descriptions
  • Loading branch information...
commit 2db8db40dc04a8f21f884355fb20e521208012fa 1 parent 418a67a
@penguinboy authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 HttpApi/RequestBase.cs
View
10 HttpApi/RequestBase.cs
@@ -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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.