Index: trunk/extensions/MetricsReporting/fetchGoogleSpreadsheet.php |
— | — | @@ -54,12 +54,12 @@ |
55 | 55 | //var_dump( $authToken ); |
56 | 56 | |
57 | 57 | $http = MWHttpRequest::factory( $url, array( |
58 | | - 'method' => 'GET' |
| 58 | + 'method' => 'GET', |
59 | 59 | ) |
60 | 60 | ); |
61 | 61 | $http->setCookieJar( $cookies ); |
62 | 62 | $http->setHeader( 'GData-Version', '3.0' ); |
63 | | - $http->setHeader( 'GAuthorization', "GoogleLogin auth=\"{$authToken}\"" ); |
| 63 | + $http->setHeader( 'Authorization', "GoogleLogin auth=\"{$authToken}\"" ); |
64 | 64 | |
65 | 65 | $res = $http->execute(); |
66 | 66 | var_dump( $res ); |