Skip to content

Commit

Permalink
Keeps user from being passed to HTTP. Solves percolatestudio#11.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiku committed Apr 10, 2015
1 parent ea53373 commit 911f957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions google-api-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ GoogleApi = {
user.services.google.accessToken) {
options.headers = options.headers || {};
options.headers.Authorization = 'Bearer ' + user.services.google.accessToken;
delete options.user;

HTTP.call(method, this._host + '/' + path, options, function(error, result) {
callback(error, result && result.data);
Expand Down

0 comments on commit 911f957

Please sign in to comment.