lib/mambanation/base.rb in mambanation-0.1.23 vs lib/mambanation/base.rb in mambanation-0.1.24

- old
+ new

@@ -22,11 +22,11 @@ def famous(query = {}) perform_get("/users/famous.json", :query => query) end def current_user(query = {}) - perform_get("/users/me", :query => query) unless @fbs_cookies.nil? + perform_get("/users/me", :query => query) end def user_by_facebook_id(facebook_id, query = {}) perform_get("/users/find_by?facebook_id=#{facebook_id.to_i}", :query => query) end @@ -233,10 +233,10 @@ private def request_options(opts={}) opts[:headers] ||= {} - opts[:headers].merge! "HTTP_X_FB_COOKIES" => @fbs_cookies if @fbs_cookies + opts[:headers].merge! "X-FB-COOKIES" => @fbs_cookies if @fbs_cookies opts end def perform_get(path, options={}) MambaNation::Request.get(self, path, request_options(options))