Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PawanOsman committed Mar 22, 2023
1 parent 1bff6cb commit 857bdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/bard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class Bard {
private axios: AxiosInstance;
private db: AppDbContext;

constructor(cookie: string, options: Options) {
constructor(cookie: string, options?: Options) {
this.db = new AppDbContext();
const agent = new https.Agent({
rejectUnauthorized: false,
});

let axiosOptions = {
proxy: options.proxy,
proxy: options?.proxy,
httpsAgent: agent,
headers: {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0",
Expand Down

0 comments on commit 857bdc4

Please sign in to comment.