Skip to content

Commit

Permalink
Merge pull request #56 from gear4dave/master
Browse files Browse the repository at this point in the history
Added useragent and gzip encoding to all requests via CURLOPT Resolves
  • Loading branch information
DaveWilcock authored May 19, 2021
2 parents 34e0a49 + 8793740 commit 78a0b12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dawguk/GarminConnect/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class Connector
CURLOPT_COOKIESESSION => false,
CURLOPT_AUTOREFERER => true,
CURLOPT_VERBOSE => false,
CURLOPT_FRESH_CONNECT => true
CURLOPT_FRESH_CONNECT => true,
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0',
CURLOPT_ENCODING => 'gzip',
);

/**
Expand Down

0 comments on commit 78a0b12

Please sign in to comment.