accepted but ignored - should probably be a 202 http code
This commit is contained in:
parent
f01e8743fc
commit
42e6b6cfe4
|
@ -14,7 +14,7 @@ function salmon_return($val) {
|
||||||
|
|
||||||
if($val >= 400)
|
if($val >= 400)
|
||||||
$err = 'Error';
|
$err = 'Error';
|
||||||
if($val == 200)
|
if($val >= 200 && $val < 300)
|
||||||
$err = 'OK';
|
$err = 'OK';
|
||||||
|
|
||||||
logger('mod-salmon returns ' . $val);
|
logger('mod-salmon returns ' . $val);
|
||||||
|
@ -186,7 +186,7 @@ function salmon_post(&$a) {
|
||||||
}
|
}
|
||||||
if((count($r)) && ($r[0]['readonly'])) {
|
if((count($r)) && ($r[0]['readonly'])) {
|
||||||
logger('mod-salmon: Ignoring this author.');
|
logger('mod-salmon: Ignoring this author.');
|
||||||
salmon_return(200);
|
salmon_return(202);
|
||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue