Permalink
Browse files

Fix Accept header name in \Slim\Middleware\ContentNegotiation.php

  • Loading branch information...
codeguy committed Sep 18, 2013
1 parent bdb2c63 commit 1466f8ee60c25bfb58cd1e52127962536442e4d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Slim/Middleware/ContentNegotiation.php
@@ -59,7 +59,7 @@ public function __construct(FormatNegotiator $negotiator = null)
public function call()
{
$env = $this->app->environment;
$accept = isset($env['ACCEPT']) ? $env['ACCEPT'] : '';
$accept = isset($env['HTTP_ACCEPT']) ? $env['HTTP_ACCEPT'] : '';
$priorities = isset($env['negotiation.priorities']) ? $env['negotiation.priorities'] : array();
$env['request.best_format'] = $this->negotiator->getBestFormat($accept, $priorities);

0 comments on commit 1466f8e

Please sign in to comment.