mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +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
|
||||
|
||||
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
|
||||
|
||||
def signature
|
||||
|
|
|
|||
Loading…
Reference in a new issue