[gnet] GConnHttp change



Hi again,

For the BitTorrent client I'm writing, I need to create a GConnHttp
whose URL might include embedded NULLs. The thing is, the current
gnet_conn_http_new accepts an unencoded URL which it then escapes for
me. This patch changes the behavior so that it won't automatically
escapes; it's required for my program but might break other
functionality (which would then require users to escape the URL
themselves.) Could this possibly be included? Thanks alot,

Samuel
Index: src/conn-http.c
===================================================================
RCS file: /cvs/gnome/gnet/src/conn-http.c,v
retrieving revision 1.10
diff -u -r1.10 conn-http.c
--- src/conn-http.c	5 May 2006 16:13:51 -0000	1.10
+++ src/conn-http.c	29 Oct 2006 05:33:53 -0000
@@ -555,7 +555,7 @@
 
 	gnet_uri_set_scheme(conn->uri, "http");
 
-	gnet_uri_escape(conn->uri);
+//	gnet_uri_escape(conn->uri);
 
 	return TRUE;
 }


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