Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/arraylabs/pymyq
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Aug 9, 2021
2 parents 3ceef25 + ae56b38 commit 1d709b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .USER_AGENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#RANDOM:5
1 change: 1 addition & 0 deletions pymyq/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ async def _send_request(
for attempt in range(DEFAULT_REQUEST_RETRIES):
if self._useragent is None:
await self._get_useragent()

if self._useragent is not None and self._useragent != "":
headers.update({"User-Agent": self._useragent})

Expand Down

0 comments on commit 1d709b6

Please sign in to comment.