gcode-mirror / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Authorization header is not case-insensitive #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is same bug: http://pecl.php.net/bugs/bug.php?id=17941

Simple fix is to remove line OAuthRequestLogger::285

        if (function_exists('apache_request_headers')) {
            $headers = apache_request_headers();
            ksort($headers);
            // return $headers;   // Remove this line so that headers are normalized below
        } else {

What steps will reproduce the problem?
1. Send a request to OAuth server with 'authorization' as a header instead of 
'Authorization'

What is the expected output? What do you see instead?
Request should be authorized, but it is not.

What version of the product are you using? On what operating system?
Mac OS 10.5.8, OAuth-php r175

Please provide any additional information below.

Original issue reported on code.google.com by archul...@seqcentral.com on 7 Apr 2011 at 3:55