mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
fixed example in readme
This commit is contained in:
@@ -59,7 +59,7 @@ Bellow is a simple Middleware class example, which builds on to the hello world
|
|||||||
}
|
}
|
||||||
function call (&$env) {
|
function call (&$env) {
|
||||||
list($status, $headers, $body) = $this->app->call($env);
|
list($status, $headers, $body) = $this->app->call($env);
|
||||||
if ( !empty($env["request.vars"]["format"]) && $env["request.get"]["format"] == "xml" ) {
|
if ( !empty($env["request.vars"]["format"]) && $env["request.vars"]["format"] == "xml" ) {
|
||||||
$headers["Content-Type"] = "application/xml";
|
$headers["Content-Type"] = "application/xml";
|
||||||
}
|
}
|
||||||
return array($status, $headers, $body);
|
return array($status, $headers, $body);
|
||||||
|
|||||||
Reference in New Issue
Block a user