/* 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
*/
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)
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: