Thanks for your changes, @rebolek. I've added a few MIME types, among them JS and CSS, in d2f67865a30a5dcecc7a46485abcb4d043af2c8c. The modification to extension parsing is in a15cd60f6bac9b2794708aaa040f391f468c7f01. Finally, I pushed a slightly more reliable chunking implementation in a1699b19407bafdc6abbc8fcc47f9f30924a6405 (yours, while much shorter, unfortunately has the disadvantage that it can easily overflow the event queue).
Thanks for your changes, @rebolek. I've added a few MIME types, among them JS and CSS, in d2f67865a30a5dcecc7a46485abcb4d043af2c8c. The modification to extension parsing is in a15cd60f6bac9b2794708aaa040f391f468c7f01. Finally, I pushed a slightly more reliable chunking implementation in a1699b19407bafdc6abbc8fcc47f9f30924a6405 (yours, while much shorter, unfortunately has the disadvantage that it can easily overflow the event queue).