diff options
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"); } |