mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] [patch #6012] http_client: Support gzip accept-encoding


From: ygrek
Subject: [Mldonkey-users] [patch #6012] http_client: Support gzip accept-encoding + content-encoding
Date: Thu, 06 Jan 2011 08:03:41 +0000
User-agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.7.62 Version/11.00

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]