From 6991904343ad96638e1c7f58798a37eae2d6af93 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 5 Jan 2016 13:58:50 -0800 Subject: [PATCH] Use lowercase :authorization for metadata key --- lib/googleauth/signet.rb | 2 +- spec/googleauth/apply_auth_examples.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/googleauth/signet.rb b/lib/googleauth/signet.rb index 9ba2e36..e955d64 100644 --- a/lib/googleauth/signet.rb +++ b/lib/googleauth/signet.rb @@ -32,7 +32,7 @@ require 'signet/oauth_2/client' module Signet # OAuth2 supports OAuth2 authentication. module OAuth2 - AUTH_METADATA_KEY = :Authorization + AUTH_METADATA_KEY = :authorization # Signet::OAuth2::Client creates an OAuth2 client # # This reopens Client to add #apply and #apply! methods which update a diff --git a/spec/googleauth/apply_auth_examples.rb b/spec/googleauth/apply_auth_examples.rb index 500152b..a2c4881 100644 --- a/spec/googleauth/apply_auth_examples.rb +++ b/spec/googleauth/apply_auth_examples.rb @@ -35,7 +35,7 @@ require 'faraday' require 'spec_helper' shared_examples 'apply/apply! are OK' do - let(:auth_key) { :Authorization } + let(:auth_key) { :authorization } # tests that use these examples need to define #