Commits

Anonymous committed 16c58d4

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.

  • Participants
  • Parent commits 425028a

Comments (0)

Files changed (1)

File infocalypse/updatesm.py

 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