Skip to content

Instantly share code, notes, and snippets.

@kowsik
Created January 21, 2011 06:58
Show Gist options
  • Select an option

  • Save kowsik/789339 to your computer and use it in GitHub Desktop.

Select an option

Save kowsik/789339 to your computer and use it in GitHub Desktop.
Monkey patch for RestClient
class RestClient::Request
Empty = {}.freeze
def default_headers
Empty
end
end
module RestAPI
Headers = { :content_type => :json }.freeze
def default_headers
Headers
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment