Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: send blobs when running ipfs-http-client in the browser #3184

Merged
merged 15 commits into from
Jul 23, 2020

Commits on Jul 20, 2020

  1. fix: normalise add input to blob in the browser

    To support streaming of native types with no buffering, normalise add
    input to async iterators in node and Blobs in the browser.
    
    That is, if the user passes a blob in the browser leave it alone as
    enumerating blob contents cause the files to be read.
    
    Browser FormData objects do not allow you to specify headers for each
    multipart part which means we can't pass unixfs metadata via the headers
    so we turn the metadata into a querystring and append it to the field
    name for each multipart part as a workaround.
    
    BREAKING CHANGES:
    
    - Removes the `mode`, `mtime` and `mtime-nsec` headers from multipart requests
    - Passes `mode`, `mtime` and `mtime-nsec` as querystring parameters appended to the field name of multipart requests
    achingbrain committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    e4a1684 View commit details
    Browse the repository at this point in the history
  2. chore: add missing dep

    achingbrain committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    efc443b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    541b6c2 View commit details
    Browse the repository at this point in the history
  4. chore: fix up tests

    achingbrain committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    0d6fdb5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    95b6b8b View commit details
    Browse the repository at this point in the history
  6. chore: fix http tests

    achingbrain committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    5f91a2e View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

  1. Configuration menu
    Copy the full SHA
    634400b View commit details
    Browse the repository at this point in the history
  2. chore: fix up tests

    achingbrain committed Jul 21, 2020
    Configuration menu
    Copy the full SHA
    9ae9e77 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2020

  1. Configuration menu
    Copy the full SHA
    8352346 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4407e45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    044e275 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a6d98b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d0e04db View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    078bd4a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b8a869c View commit details
    Browse the repository at this point in the history