diff options
author | tailor <cygnus@janrain.com> | 2008-05-20 20:03:00 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2008-05-20 20:03:00 +0000 |
commit | eb308f5d9a7c78157889e08c7e8e174276d2f9fa (patch) | |
tree | 58b8bb64bb6307d45a592832e6ec2bbc0da2f9c8 /examples/server/lib/actions.php | |
parent | 2d0799ac7f507c5592c8dc8a7715b2064989c9d1 (diff) | |
download | php-openid-eb308f5d9a7c78157889e08c7e8e174276d2f9fa.zip php-openid-eb308f5d9a7c78157889e08c7e8e174276d2f9fa.tar.gz php-openid-eb308f5d9a7c78157889e08c7e8e174276d2f9fa.tar.bz2 |
[project @ Example server: set response code in action_default]
Diffstat (limited to 'examples/server/lib/actions.php')
-rw-r--r-- | examples/server/lib/actions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/server/lib/actions.php b/examples/server/lib/actions.php index 7e11cfa..50dc19a 100644 --- a/examples/server/lib/actions.php +++ b/examples/server/lib/actions.php @@ -64,6 +64,11 @@ function action_default() $webresponse =& $server->encodeResponse($response); + if ($webresponse->code != AUTH_OPENID_HTTP_OK) { + header(sprintf("HTTP/1.1 %d ", $webresponse->code), + true, $webresponse->code); + } + foreach ($webresponse->headers as $k => $v) { header("$k: $v"); } |