File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3248,6 +3248,12 @@ function convertBody(buffer, headers) {
32483248 // html4
32493249 if ( ! res && str ) {
32503250 res = / < m e t a [ \s ] + ?h t t p - e q u i v = ( [ ' " ] ) c o n t e n t - t y p e \1[ \s ] + ?c o n t e n t = ( [ ' " ] ) ( .+ ?) \2/ i. exec ( str ) ;
3251+ if ( ! res ) {
3252+ res = / < m e t a [ \s ] + ?c o n t e n t = ( [ ' " ] ) ( .+ ?) \1[ \s ] + ?h t t p - e q u i v = ( [ ' " ] ) c o n t e n t - t y p e \3/ i. exec ( str ) ;
3253+ if ( res ) {
3254+ res . pop ( ) ; // drop last quote
3255+ }
3256+ }
32513257
32523258 if ( res ) {
32533259 res = / c h a r s e t = ( .* ) / i. exec ( res . pop ( ) ) ;
@@ -4255,7 +4261,7 @@ function fetch(url, opts) {
42554261 // HTTP fetch step 5.5
42564262 switch ( request . redirect ) {
42574263 case 'error' :
4258- reject ( new FetchError ( `redirect mode is set to error: ${ request . url } ` , 'no-redirect' ) ) ;
4264+ reject ( new FetchError ( `uri requested responds with a redirect, redirect mode is set to error: ${ request . url } ` , 'no-redirect' ) ) ;
42594265 finalize ( ) ;
42604266 return ;
42614267 case 'manual' :
@@ -4294,7 +4300,8 @@ function fetch(url, opts) {
42944300 method : request . method ,
42954301 body : request . body ,
42964302 signal : request . signal ,
4297- timeout : request . timeout
4303+ timeout : request . timeout ,
4304+ size : request . size
42984305 } ;
42994306
43004307 // HTTP-redirect fetch step 9
You can’t perform that action at this time.
0 commit comments