Ticket #12578: multipartparser.diff
File multipartparser.diff, 543 bytes (added by , 15 years ago) |
---|
-
multipartparser.py
546 546 # and parse it if found. The header must fit within one 547 547 # chunk. 548 548 chunk = stream.read(max_header_size) 549 print "printing to c:/chunk.txt" 550 f = open('c:/chunk.txt', 'a') 551 f.write(chunk) 552 f.close() 549 553 550 554 # 'find' returns the top of these four bytes, so we'll 551 555 # need to munch them later to prevent them from polluting