Skip to content

Commit

Permalink
fix(getInfo): use default agent if it is not set
Browse files Browse the repository at this point in the history
Fix #63
  • Loading branch information
skick1234 committed Aug 5, 2024
1 parent ed53c81 commit 9117764
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 @@ -319,7 +319,7 @@ const fetchIosJsonPlayer = async(videoId, options) => {
},
};

const { jar, dispatcher } = options.agent;
const { jar, dispatcher } = options.agent || defaultAgent;
const opts = {
requestOptions: {
method: 'POST',
Expand Down

0 comments on commit 9117764

Please sign in to comment.