diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-28 09:27:59 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-28 09:27:59 +0200 |
commit | dccd2da3563389a37ccddbb166bbb3b5ed3a0124 (patch) | |
tree | 31b646818c906339f01bd4538aee7364f5ef8c9d /include/salmon.php | |
parent | e986fc3e301f2a0cfb3b975fe60974fc5dcfd76b (diff) | |
parent | 44d7c6aac3548e94e35aed87ba7c06b04f374fc2 (diff) | |
download | volse-hubzilla-dccd2da3563389a37ccddbb166bbb3b5ed3a0124.tar.gz volse-hubzilla-dccd2da3563389a37ccddbb166bbb3b5ed3a0124.tar.bz2 volse-hubzilla-dccd2da3563389a37ccddbb166bbb3b5ed3a0124.zip |
Merge remote-tracking branch 'friendika/master'
Diffstat (limited to 'include/salmon.php')
-rw-r--r-- | include/salmon.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/salmon.php b/include/salmon.php index 9153f8994..3d525f51a 100644 --- a/include/salmon.php +++ b/include/salmon.php @@ -187,6 +187,9 @@ EOT; logger('slapper returned ' . $return_code); if(! $return_code) return(-1); + if(($return_code == 503) && (stristr($a->get_curl_headers(),'retry-after'))) + return(-1); + return ((($return_code >= 200) && ($return_code < 300)) ? 0 : 1); } |