racket / web-server

Other
90 stars 47 forks source link

read-mime-multipart: fix content reading edge case #95

Closed Bogdanp closed 4 years ago

Bogdanp commented 4 years ago

There is an edge case in the current implementation of read-mime-multipart that causes it to miss boundaries when the data is split in the middle of a boundary and the next boundary is in the buffer after the split. I've updated the tests to randomly chunk the fixtures, which made the error apparent, and fixed the implementation.

jeapostrophe commented 4 years ago

Thank you for your hard work!