mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
fixed a typo in Format middleware example
This commit is contained in:
@@ -16,7 +16,7 @@ class Format {
|
||||
|
||||
// do something with response headers
|
||||
foreach( $formats as $key => $value ) {
|
||||
if ( !empty($env["request.vars"]["format"]) && $env["request.get"]["format"] == $key ) {
|
||||
if ( !empty($env["request.vars"]["format"]) && $env["request.vars"]["format"] == $key ) {
|
||||
$headers["Content-Type"] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user