Skip to content

Commit

Permalink
Adding proper json prerequisites and json dump to add_shares.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trip Levine committed Sep 22, 2014
1 parent 94aa3f9 commit 7611783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linked_in/share_and_social_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def share_likes(update_key, options={})
def add_share(share)
path = "/people/~/shares"
defaults = {visibility: {code: "anyone"}}
post(path, defaults.merge(share))
post(path, MultiJson.dump(defaults.merge(share)), "Content-Type" => "application/json")
end

# Create a comment on an update from the authenticated user
Expand Down

0 comments on commit 7611783

Please sign in to comment.