Skip to content

Commit

Permalink
fix: apply default options before clone it
Browse files Browse the repository at this point in the history
Fix #62
Fix #59
  • Loading branch information
skick1234 committed Aug 4, 2024
1 parent c40469d commit ee0a182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const AGE_RESTRICTED_URLS = [
*/
exports.getBasicInfo = async(id, options) => {
utils.applyIPv6Rotations(options);
const retryOptions = Object.assign({}, options.requestOptions);
utils.applyDefaultHeaders(options);
utils.applyDefaultAgent(options);
utils.applyOldLocalAddress(options);
const retryOptions = Object.assign({}, options.requestOptions);
const { jar, dispatcher } = options.agent;
utils.setPropInsensitive(
options.requestOptions.headers, 'cookie', jar.getCookieStringSync('https://www.youtube.com'),
Expand Down

0 comments on commit ee0a182

Please sign in to comment.