Skip to content

Commit

Permalink
More easily filterable timeout
Browse files Browse the repository at this point in the history
(because I think it'll be the only stuff people will need to filter)
  • Loading branch information
ozh committed Dec 13, 2013
1 parent 932392c commit dae1040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions-http.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function yourls_http_post_body( $url, $headers = array(), $data = array(), $opti
*/
function yourls_http_default_options() {
$options = array(
'timeout' => '5',
'timeout' => yourls_apply_filter( 'http_default_options_timeout', 3 ),
'useragent' => yourls_http_user_agent(),
'follow_redirects' => true,
'redirects' => 3,
Expand Down

0 comments on commit dae1040

Please sign in to comment.