-fixes
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 26 Mar 2012 15:18:23 +0000 (15:18 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 26 Mar 2012 15:18:23 +0000 (15:18 +0000)
src/gns/gnunet-service-gns.c
src/gns/proxy/gnunet-gns-proxy.py

index 733886f3a5a6a13c292bef3b0893be48f6436983..d851ef7a4c21cd82dcb2c6457a7db5580fbf7dcf 100644 (file)
@@ -154,28 +154,6 @@ static int auto_import_pkey;
 /* lookup timeout */
 static struct GNUNET_TIME_Relative default_lookup_timeout;
 
-/**
- * Normalizes the name in old
- *
- * @param old the old name to normalize
- * @param new the buffer to write the new name to
- *
-static void
-normalize_name(const char* old, char** new)
-{
-  uint8_t *tmp_name;
-  size_t n_len;
-
-  tmp_name = u8_tolower ((uint8_t*)old, strlen ((char *) old),
-                       NULL, UNINORM_NFD, NULL, &n_len);
-
-  memcpy(*new, tmp_name, n_len);
-  (*new)[n_len] = '\0';
-  free(tmp_name);
-}
-*/
-
-
 /**
  * Continue shutdown
  */
index aea625cbb29021dbbd9246f3bd03b023d5623dee..094f5412ca649d92e0bb6038534695170298c836 100644 (file)
@@ -150,7 +150,6 @@ class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
                     data = i.recv(8192)
                     if data:
                         try:
-                          print self.headers
                           data = re.sub(r'\nAccept-Ranges: \w+', r'', data)
                           data = re.sub('(a href="http://(\w+\.)*zkey)',
                               self.shorten_zkey(), data)
@@ -159,7 +158,6 @@ class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
                               arr.pop(0)
                               data = re.sub('(a href="http://(\w+\.)*)(\+)',
                                   self.replace_and_shorten(to_repl), data)
-                          print data
                           out.send(data)
                           count = 0
                         except: