Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip the preamble in MultipartReader. #881

Merged
merged 1 commit into from
May 23, 2016

Commits on May 19, 2016

  1. Skip the preamble in MultipartReader.

    This updates the MultipartReader to ignore the preamble of a multipart
    message.  To quote the RFC:
    
    > There appears to be room for additional information prior to the first
    > boundary delimiter line and following the final boundary delimiter line.
    > These areas should generally be left blank, and implementations must
    > ignore anything that appears before the first boundary delimiter line or
    > after the last one.
    
    To do this, the MultipartReader now acts slightly differently at the
    beginning of the file.  Instead of looking for a boundary and excepting
    if it doesn't find one, it will skip over the initial data looking for
    the first boundary and start reading from there.
    
    If it doesn't find any boundary, it will except similar to how it did
    before.
    
    Fixes aio-libs#880
    obmarg committed May 19, 2016
    Configuration menu
    Copy the full SHA
    c232c23 View commit details
    Browse the repository at this point in the history