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

Rewrite multipart boundary detection #7728

Merged
merged 3 commits into from
Nov 29, 2020

Commits on Nov 28, 2020

  1. Rewrite multipart boundary detection

    Use a simpler, cleaner implementation of multipart form detection as
    defined in https://tools.ietf.org/html/rfc7578 .
    
    Implements a simple state machine that detects the \r\n--<boundary>
    stream in input a character at a time, instead of buffering and
    comparing in chunks which can miss things due to alignment issues and
    which also had a problem with replacing characters in a binary stream.
    
    Fixes esp8266#7723
    earlephilhower committed Nov 28, 2020
    Configuration menu
    Copy the full SHA
    b813a80 View commit details
    Browse the repository at this point in the history
  2. Use uploadReadByte return code to abort when needed

    Adjust the private _uploadReadByte function to return -1 on error (like
    a read()), and the main file upload handler to use that return value
    instead of duplicating logic.
    earlephilhower committed Nov 28, 2020
    Configuration menu
    Copy the full SHA
    730421e View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2020

  1. Configuration menu
    Copy the full SHA
    a2aa8b6 View commit details
    Browse the repository at this point in the history