Skip to content

Commit

Permalink
支持https转http
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Apr 20, 2023
1 parent d3a1437 commit 2868b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, url, header=None, params=None, method="POST") -> None:
self.method = method
self.isParseRes = False
self.isUseHttps = True
self.isUseHttps = bool(Setting.IsUseHttps.value)
self.timeout = 5
if Setting.IsHttpProxy.value == 1:
self.proxy = {"http": Setting.HttpProxy.value, "https": Setting.HttpProxy.value}
Expand Down

0 comments on commit 2868b5c

Please sign in to comment.