Skip to content

Commit

Permalink
fix: add timeout for https
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jan 17, 2024
1 parent 006abb3 commit 966ea2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/ChatGLM4Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export class ChatGLM4Client extends BaseClient {
referer: 'https://www.chatglm.cn/main/alltoolsdetail',
origin: 'https://www.chatglm.cn'
},
referrer: 'https://www.chatglm.cn/main/alltoolsdetail'
referrer: 'https://www.chatglm.cn/main/alltoolsdetail',
timeout: 60000
}
const req = https.request(BASEURL, option, (res) => {
statusCode = res.statusCode
Expand Down

0 comments on commit 966ea2d

Please sign in to comment.