Created
January 21, 2011 06:58
-
-
Save kowsik/789339 to your computer and use it in GitHub Desktop.
Monkey patch for RestClient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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