Skip to content

Commit

Permalink
Increase cURL timeout to 30s to match Wallabag settings (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang authored and joshp23 committed Mar 27, 2018
1 parent cf71533 commit b9802ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallabag_v2/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Wallabag_v2 extends Plugin {
private $host;

function about() {
return array("1.3.1",
return array("1.3.2",
"Post articles to a Wallabag v 2.x instance",
"joshu@unfettered.net");
}
Expand Down Expand Up @@ -198,7 +198,7 @@ function getwallabagInfo() {
curl_setopt($cURL, CURLOPT_HEADER, 1);
curl_setopt($cURL, CURLOPT_HTTPHEADER, array('Content-type: application/x-www-form-urlencoded;charset=UTF-8'));
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURL, CURLOPT_TIMEOUT, 5);
curl_setopt($cURL, CURLOPT_TIMEOUT, 30);
curl_setopt($cURL, CURLOPT_POST, 4);
curl_setopt($cURL, CURLOPT_POSTFIELDS, http_build_query($postfields));
$apicall = curl_exec($cURL);
Expand Down

0 comments on commit b9802ca

Please sign in to comment.