diff options
author | waker <wakeroid@gmail.com> | 2011-02-21 19:54:23 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-02-21 19:54:23 +0100 |
commit | 725936281a63fa3f5d5e07effeab46fe87a0fa4a (patch) | |
tree | 8a1914fdbcc02be0f59c249ebddfcf54239f6fe3 /plugins/vfs_curl | |
parent | 3f43ba3e797ca066a776f3523450b0f7b59047fa (diff) |
vfs_curl sets useragent to "deadbeef", to play streams which block curl useragent
Diffstat (limited to 'plugins/vfs_curl')
-rw-r--r-- | plugins/vfs_curl/vfs_curl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c index 6ac1a43e..ae20233e 100644 --- a/plugins/vfs_curl/vfs_curl.c +++ b/plugins/vfs_curl/vfs_curl.c @@ -536,6 +536,7 @@ http_thread_func (void *ctx) { struct curl_slist *headers = NULL; curl_easy_reset (curl); curl_easy_setopt (curl, CURLOPT_URL, fp->url); + curl_easy_setopt (curl, CURLOPT_USERAGENT, "deadbeef"); curl_easy_setopt (curl, CURLOPT_NOPROGRESS, 1); curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, http_curl_write); curl_easy_setopt (curl, CURLOPT_WRITEDATA, ctx); |