From c7848ff95a603c0d97b465ed1f2058178b3f78c0 Mon Sep 17 00:00:00 2001 From: Ilya Grigorik Date: Thu, 2 Jun 2011 23:42:30 -0400 Subject: [PATCH] fix oauth middleware --- lib/em-http/middleware/oauth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/em-http/middleware/oauth.rb b/lib/em-http/middleware/oauth.rb index d1cbeec0..4c922147 100644 --- a/lib/em-http/middleware/oauth.rb +++ b/lib/em-http/middleware/oauth.rb @@ -12,7 +12,7 @@ def initialize(opts = {}) def request(client, head, body) @consumer.sign!(client, @access_token) - head.merge!(client.options[:head]) + head.merge!(client.req.headers) [head,body] end