r93630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93629‎ | r93630 | r93631 >
Date:16:28, 1 August 2011
Author:reedy
Status:deferred
Tags:
Comment:
Fix auth header
Modified paths:
  • /trunk/extensions/MetricsReporting/fetchGoogleSpreadsheet.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetricsReporting/fetchGoogleSpreadsheet.php
@@ -54,12 +54,12 @@
5555 //var_dump( $authToken );
5656
5757 $http = MWHttpRequest::factory( $url, array(
58 - 'method' => 'GET'
 58+ 'method' => 'GET',
5959 )
6060 );
6161 $http->setCookieJar( $cookies );
6262 $http->setHeader( 'GData-Version', '3.0' );
63 - $http->setHeader( 'GAuthorization', "GoogleLogin auth=\"{$authToken}\"" );
 63+ $http->setHeader( 'Authorization', "GoogleLogin auth=\"{$authToken}\"" );
6464
6565 $res = $http->execute();
6666 var_dump( $res );

Status & tagging log