• Phil Pluckthun's avatar
    fix(core): Handle text/* type fetch responses (#2456) · 2695fb93
    Phil Pluckthun authored
    * handle text responses
    
    * update tests
    
    * fix tests
    
    * Replace error fallback with text/* special content handling
    
    The outer `catch` was still responsible for handling errors,
    so we can avoid duplication here and still use `statusText`.
    We should instead add a separate case for `text/*` contents.
    Those should never really be returned by endpoints, but if they
    are we can return them as it was in this branch before.
    
    * Update multipart snapshots
    Co-authored-by: 's avatarjdecroock <decroockjovi@gmail.com>
    2695fb93
Name
Last commit
Last update
..
fetch.test.ts.snap Loading commit data...
subscription.test.ts.snap Loading commit data...