Update of patch #6012 (project mldonkey):

             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #6:

Fix stupid bug in Http_client.wget_string - actually uncompress data.
See http://mldonkey.sourceforge.net/phpBB2/viewtopic.php?p=31093#31093

diff --git src/utils/net/http_client.ml src/utils/net/http_client.ml 
index 305f086..f143098 100644 
--- src/utils/net/http_client.ml 
+++ src/utils/net/http_client.ml 
@@ -500,7 +500,7 @@ let wget_string r f ?(ferr=def_ferr) progress = 
       let content = 
         if r.req_gzip then 
           try 
-            let io = IO.input_string (Buffer.contents file_buf) in 
+            let io = Gzip.input_io (IO.input_string (Buffer.contents
file_buf)) in 
             IO.read_all io 
           with e -> 
             lprintf_nl "Exception %s while uncompressing content from %s"
(Printexc2.to_string e) (Url.to_string r.req_url);

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6012>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Mldonkey-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-users

Reply via email to