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

Support container.Put without knowing the item size #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 30, 2020

  1. Local: allow -1 as unknown size on Put

    When putting an item, the item's data is retrieved from an
    io.Reader, but a size argument is also supplied. This change
    causes the local backend to ignore the size (as what most other
    backends do) if it's negative. This allows for data sources whose
    size is not known in advance (e.g. getting an HTTP upload request
    with a multipart/form-data payload).
    urisimchoni committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    81ba263 View commit details
    Browse the repository at this point in the history
  2. test - test Put with -1 as size

    Show that all backends can receive -1 as size for Put.
    urisimchoni committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    8b1ec9c View commit details
    Browse the repository at this point in the history