Move the part that parses headers out of `http.multipart`.