Commit 4a922cef authored by Francois Marier's avatar Francois Marier
Browse files

externalfeed: use an empty user agent (bug #807341)



There seems to be some kind of weird caching problems when using
feedburner feeds which I suspect might be related to how Feedburner
looks at the user agent of the client and returns different data
depending on the user agent.

Sending an empty user agent seems to work around these problems.

Change-Id: Iaa513d33bdae31f816b5c5046ed59deaf3b40b01
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 09580e3c
...@@ -310,6 +310,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype { ...@@ -310,6 +310,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
$config = array( $config = array(
CURLOPT_URL => $source, CURLOPT_URL => $source,
CURLOPT_TIMEOUT => 15, CURLOPT_TIMEOUT => 15,
CURLOPT_USERAGENT => '',
); );
$result = mahara_http_request($config); $result = mahara_http_request($config);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment