Skip to content

Commit a05c1d0

Browse files
committed
used a more modern user agent to prevent twitter redirect to mobile version #188
1 parent 923cd15 commit a05c1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/CurlDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CurlDispatcher implements DispatcherInterface
2121
CURLOPT_ENCODING => '',
2222
CURLOPT_AUTOREFERER => true,
2323
CURLOPT_FOLLOWLOCATION => true,
24-
CURLOPT_USERAGENT => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
24+
CURLOPT_USERAGENT => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0',
2525
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
2626
];
2727

0 commit comments

Comments
 (0)