Skip to content

Instantly share code, notes, and snippets.

@kowsik
Created January 21, 2011 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kowsik/789339 to your computer and use it in GitHub Desktop.
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