Code

Ticket #12578: multipartparser.diff

File multipartparser.diff, 543 bytes (added by jfenwick, 4 years ago)

code to print chunks to file

Line 
1Index: multipartparser.py
2===================================================================
3--- multipartparser.py  (revision 12345)
4+++ multipartparser.py  (working copy)
5@@ -546,6 +546,10 @@
6     # and parse it if found. The header must fit within one
7     # chunk.
8     chunk = stream.read(max_header_size)
9+    print "printing to c:/chunk.txt"
10+    f = open('c:/chunk.txt', 'a')
11+    f.write(chunk)
12+    f.close()
13 
14     # 'find' returns the top of these four bytes, so we'll
15     # need to munch them later to prevent them from polluting