Skip to content

Commit

Permalink
Update rthk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 19, 2024
1 parent 97107e8 commit 9e62c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def check():
headersForCheck['Cache-Control'] = 'no-cache'
headersForCheck['Pragma'] = 'no-cache'
print( f'headersForCheck: { headersForCheck }' )
response = get_response.get(url, timeout=2, headers=headersForCheck )
response = get_response( url, timeout=2, headers=headersForCheck )
if response.ok:
# print(f'使用代理獲取 {url} 成功: \nhttp_version: {response.http_version} \n{response.text}\n')
print(f'使用代理獲取 {url} 成功: \n{response.text}\n')
Expand Down

0 comments on commit 9e62c14

Please sign in to comment.