Skip to content

Commit

Permalink
🐛 fixed the user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Jun 15, 2024
1 parent 6f7316d commit 4260249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def get_ua(self):
获取自定义ua
"""
try:
return str(self.config['ua'])
return {"user-agent": str(self.config['ua'])}
except KeyError:
return ""

Expand Down

0 comments on commit 4260249

Please sign in to comment.