Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc192ff

Browse files
authored
Merge pull request actions#99 from actions/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2 parents 2d40ba5 + 5c19504 commit bc192ff

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.licenses/npm/node-fetch.dep.yml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3753,6 +3753,12 @@ function convertBody(buffer, headers) {
37533753
// html4
37543754
if (!res && str) {
37553755
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
3756+
if (!res) {
3757+
res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
3758+
if (res) {
3759+
res.pop(); // drop last quote
3760+
}
3761+
}
37563762

37573763
if (res) {
37583764
res = /charset=(.*)/i.exec(res.pop());
@@ -4760,7 +4766,7 @@ function fetch(url, opts) {
47604766
// HTTP fetch step 5.5
47614767
switch (request.redirect) {
47624768
case 'error':
4763-
reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
4769+
reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
47644770
finalize();
47654771
return;
47664772
case 'manual':
@@ -4799,7 +4805,8 @@ function fetch(url, opts) {
47994805
method: request.method,
48004806
body: request.body,
48014807
signal: request.signal,
4802-
timeout: request.timeout
4808+
timeout: request.timeout,
4809+
size: request.size
48034810
};
48044811

48054812
// HTTP-redirect fetch step 9

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)