Skip to content

Commit 870aa95

Browse files
committed
Replace String#blank? with its implementation
1 parent 19c571a commit 870aa95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/oauth/request_proxy/action_controller_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def parameters_for_signature
6767

6868
params.
6969
join('&').split('&').
70-
reject(&:blank?).
70+
reject { |s| s.match(/\A\s*\z/) }.
7171
map { |p| p.split('=').map{|esc| CGI.unescape(esc)} }.
7272
reject { |kv| kv[0] == 'oauth_signature'}
7373
end

lib/oauth/request_proxy/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def query_string_blank?
146146
if uri = request.env['REQUEST_URI']
147147
uri.split('?', 2)[1].nil?
148148
else
149-
request.query_string.blank?
149+
request.query_string.match(/\A\s*\z/)
150150
end
151151
end
152152

0 commit comments

Comments
 (0)