From dba976d6ac09bbd60ca2123d031341f66e2eefc0 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 5 Dec 2013 20:57:22 +0000 Subject: [PATCH 1/2] Fixes #108, fixes #114 - ucfirst headers --- src/League/OAuth2/Server/Util/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/League/OAuth2/Server/Util/Request.php b/src/League/OAuth2/Server/Util/Request.php index 548bf2526..b2f5752cf 100644 --- a/src/League/OAuth2/Server/Util/Request.php +++ b/src/League/OAuth2/Server/Util/Request.php @@ -119,7 +119,7 @@ protected function normalizeHeaders(array $headers) { $normalized = array(); foreach ($headers as $key => $value) { - $normalized[$this->normalizeKey($key)] = $value; + $normalized[ucfirst($this->normalizeKey($key))] = $value; } return $normalized; From d9917a57e1bcd0bdac667c3c88844998eaddbaee Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 5 Dec 2013 21:09:35 +0000 Subject: [PATCH 2/2] Version bump --- CHANGELOG.md | 8 ++++++-- composer.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3117d8e4e..13f45c162 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## 3.1 (released 2013-12-05) +## 3.1.1 (released 2013-12-05) + +* Normalize headers when `getallheaders()` is available (Issues #108 and #114) + +## 3.1.0 (released 2013-12-05) * No longer necessary to inject the authorisation server into a grant, the server will inject itself * Added test for 1419ba8cdcf18dd034c8db9f7de86a2594b68605 @@ -9,7 +13,7 @@ * Forgot to tell TravisCI from testing PHP 5.3 -## 3.0 (released 2013-12-02) +## 3.0.0 (released 2013-12-02) * Fixed spelling of Implicit grant class (Issue #84) * Travis CI now tests for PHP 5.5 diff --git a/composer.json b/composer.json index 5bfaa6f51..ee81767a9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "league/oauth2-server", "description": "A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.", - "version": "3.1", + "version": "3.1.1", "homepage": "https://github.com/php-loep/oauth2-server", "license": "MIT", "require": {