aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-27 17:29:30 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-27 17:29:30 -0700
commit42e6b6cfe4f0b2bd6a2e8361479cb813857ca0e6 (patch)
treea0af69b2075cd432984c8e7a3ee055aec534cef7 /mod
parentf01e8743fcfd26cc44a6c808418773520c77fe84 (diff)
downloadvolse-hubzilla-42e6b6cfe4f0b2bd6a2e8361479cb813857ca0e6.tar.gz
volse-hubzilla-42e6b6cfe4f0b2bd6a2e8361479cb813857ca0e6.tar.bz2
volse-hubzilla-42e6b6cfe4f0b2bd6a2e8361479cb813857ca0e6.zip
accepted but ignored - should probably be a 202 http code
Diffstat (limited to 'mod')
-rw-r--r--mod/salmon.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/salmon.php b/mod/salmon.php
index 2acb094c3..3a18f35f0 100644
--- a/mod/salmon.php
+++ b/mod/salmon.php
@@ -14,7 +14,7 @@ function salmon_return($val) {
if($val >= 400)
$err = 'Error';
- if($val == 200)
+ if($val >= 200 && $val < 300)
$err = 'OK';
logger('mod-salmon returns ' . $val);
@@ -186,7 +186,7 @@ function salmon_post(&$a) {
}
if((count($r)) && ($r[0]['readonly'])) {
logger('mod-salmon: Ignoring this author.');
- salmon_return(200);
+ salmon_return(202);
// NOTREACHED
}