Permalink
Browse files

adding line to specify Content-Type

  • Loading branch information...
1 parent 172e23d commit be6408acd6328080b9be980d0ce056cb8b0d4177 @perzeababa perzeababa committed with Jul 6, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 post_form.rb
View
@@ -11,5 +11,6 @@
request = Net::HTTP::Post.new(uri.request_uri)
request.set_form_data({"q" => "My query", "per_page" => "50"})
+#request["Content-Type"] = "application/json"
response = http.request(request)

0 comments on commit be6408a

Please sign in to comment.