Author: alanmc
Date: 2007-03-24 11:32:41 -0500 (Sat, 24 Mar 2007)
New Revision: 74938

Modified:
   trunk/bitsharp/src/MonoTorrent.Client/Tracker.cs
Log:
cosmetic

Modified: trunk/bitsharp/src/MonoTorrent.Client/Tracker.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Tracker.cs    2007-03-24 16:32:34 UTC 
(rev 74937)
+++ trunk/bitsharp/src/MonoTorrent.Client/Tracker.cs    2007-03-24 16:32:41 UTC 
(rev 74938)
@@ -235,20 +235,22 @@
 
 
         #region Methods
+
         internal WaitHandle Scrape(bool requestSingle, string infohash)
         {
             HttpWebRequest request;
+            string url = this.scrapeUrl;
 
             if (requestSingle)
             {
                 if (this.scrapeUrl.IndexOf('?') == -1)
-                    request = 
(HttpWebRequest)HttpWebRequest.Create(this.scrapeUrl + "?info_hash=" + 
infohash);
+                    url += "?info_hash=" + infohash;
                 else
-                    request = 
(HttpWebRequest)HttpWebRequest.Create(this.scrapeUrl + "&info_hash=" + 
infohash);
+                    url += "&info_hash=" + infohash;
             }
-            else
-                request = 
(HttpWebRequest)HttpWebRequest.Create(this.scrapeUrl);
 
+            request = (HttpWebRequest)HttpWebRequest.Create(url);
+
             TrackerConnectionID id = new TrackerConnectionID(request, this);
             return request.BeginGetResponse(this.scrapeCallback, 
id).AsyncWaitHandle;
         }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to