We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f3899 commit 745b775Copy full SHA for 745b775
lib/bitbucket_rest_api/request/oauth.rb
@@ -13,17 +13,19 @@ class OAuth < Faraday::Middleware
13
14
def call(env)
15
# Extract parameters from the query
16
+ request = Rack::Request.new env
17
+ env[:url] = URI.parse(request.url) if env[:url].nil?
18
params = { }.update query_params(env[:url])
19
20
if (@token and @secret) and (!@token.empty? and !@secret.empty?)
21
access_token = ::OAuth::AccessToken.new(@consumer, @token, @secret)
22
env[:url].query = build_query params
-
23
+
24
puts oauth_helper.header
25
puts oauth_helper.header.class
26
env[:request_headers].merge!(AUTH_HEADER => oauth_helper.header)
27
end
28
29
30
31
0 commit comments