mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-04-27 14:57:45 +00:00
Merge pull request #4 from steeve/patch-1
Only put option when there is a value. (Causes errors with Netflix API).
This commit is contained in:
commit
27ce779af0
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ module SimpleOAuth
|
||||||
end
|
end
|
||||||
|
|
||||||
def attributes
|
def attributes
|
||||||
ATTRIBUTE_KEYS.inject({}){|a,k| options.key?(k) ? a.merge(:"oauth_#{k}" => options[k]) : a }
|
ATTRIBUTE_KEYS.inject({}){|a,k| options[k] ? a.merge(:"oauth_#{k}" => options[k]) : a }
|
||||||
end
|
end
|
||||||
|
|
||||||
def signature
|
def signature
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue