Permalink
Browse files

now sending JSON accept headers

  • Loading branch information...
Chris Bielinski
Chris Bielinski committed Jan 12, 2011
1 parent 55730fd commit a1a5a0e2519d19ff0c260b24ec8b4be184f8f9e0
Showing with 3 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 refuddle.rb
View
@@ -1,2 +1,3 @@
config/*
-Capfile
+Capfile
+sinatra.log
View
@@ -8,7 +8,7 @@
def unfuddle_call_api(request,passthru=false)
puts "[API] #{request}"
- data = RestClient.get("#{unfuddle_base_url}#{request}")
+ data = RestClient.get "#{unfuddle_base_url}#{request}", { :accept => :json }
return passthru ? data : JSON.parse(data)
end

0 comments on commit a1a5a0e

Please sign in to comment.