Skip to content

Commit

Permalink
chore: brower.ts relaxes the content-type (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
netbrain committed May 26, 2023
1 parent 473c268 commit 4ca2b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser.ts
Expand Up @@ -96,7 +96,7 @@ export async function meros<T = object>(response: Response, options?: Options) {
if (!response.ok || !response.body || response.bodyUsed) return response;

let ctype = response.headers.get('content-type');
if (!ctype || !~ctype.indexOf('multipart/mixed')) return response;
if (!ctype || !~ctype.indexOf('multipart/')) return response;

let idx_boundary = ctype.indexOf('boundary=');
let boundary = '-';
Expand Down

0 comments on commit 4ca2b8f

Please sign in to comment.