Fixing some mistakes and algorithm incorrectness in the mimetype detector
Adding whitespace detection to the multipart parser