._site

(djk)
2012-11-24: BUGFIX: Work around stricter freenet metadata mime type parsing.

BUGFIX: Work around stricter freenet metadata mime type parsing. Details: The mime time validation was made stricter sometime shortly before freenet rev 1423. That broke the salting hacks used to insert redundant splitfile metadata. The work around was to use '_' instead of ';' as a separator.

diff --git a/infocalypse/updatesm.py b/infocalypse/updatesm.py
--- a/infocalypse/updatesm.py
+++ b/infocalypse/updatesm.py
@@ -51,9 +51,9 @@ from requestingbundles import Requesting
 import topkey
 
 HG_MIME_TYPE = 'application/mercurial-bundle'
-HG_MIME_TYPE_FMT = HG_MIME_TYPE + ';%i'
+HG_MIME_TYPE_FMT = HG_MIME_TYPE + '_%i'
 
-METADATA_MARKER = HG_MIME_TYPE + ';'
+METADATA_MARKER = HG_MIME_TYPE + '_'
 PAD_BYTE = '\xff'
 
 MAX_SSK_LEN = 1024