<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -107,6 +107,7 @@ module Typhoeus
     def get_easy_object(request)
       easy = @easy_pool.pop || Easy.new
       easy.url          = request.url
+      easy.params       = request.params if request.method == :post
       easy.method       = request.method
       easy.headers      = request.headers if request.headers
       easy.request_body = request.body    if request.body</diff>
      <filename>lib/typhoeus/hydra.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,11 @@ module Typhoeus
       @headers          = options[:headers] || {}
       @user_agent       = options[:user_agent] || Typhoeus::USER_AGENT
       @cache_timeout    = options[:cache_timeout]
-      @url              = @params ? &quot;#{url}?#{params_string}&quot; : url
+      if @method == :post
+        @url = url
+      else
+        @url = @params ? &quot;#{url}?#{params_string}&quot; : url
+      end
       @on_complete      = nil
       @after_complete   = nil
       @handled_response = nil</diff>
      <filename>lib/typhoeus/request.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,6 +27,7 @@ describe Typhoeus::Hydra do
   it &quot;has a setter for the singleton&quot; do
     Typhoeus::Hydra.hydra = :foo
     Typhoeus::Hydra.hydra.should == :foo
+    Typhoeus::Hydra.hydra = Typhoeus::Hydra.new
   end
 
   context &quot;#stub&quot; do
@@ -224,12 +225,12 @@ describe Typhoeus::Hydra do
   
   it &quot;should fire and forget&quot; do
     hydra  = Typhoeus::Hydra.new
-    first  = Typhoeus::Request.new(&quot;http://localhost:3000/first?delay=5&quot;)
-    second = Typhoeus::Request.new(&quot;http://localhost:3001/second?delay=10&quot;)
+    first  = Typhoeus::Request.new(&quot;http://localhost:3000/first?delay=1&quot;)
+    second = Typhoeus::Request.new(&quot;http://localhost:3001/second?delay=2&quot;)
     hydra.queue first
     hydra.queue second
     hydra.fire_and_forget
-    third = Typhoeus::Request.new(&quot;http://localhost:3002/third?delay=15&quot;)
+    third = Typhoeus::Request.new(&quot;http://localhost:3002/third?delay=3&quot;)
     hydra.queue third
     hydra.fire_and_forget
   end</diff>
      <filename>spec/typhoeus/hydra_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,9 @@ describe &quot;request&quot; do
     it &quot;can run a POST synchronously&quot; do
       response = Typhoeus::Request.post(&quot;http://localhost:3000&quot;, :params =&gt; {:q =&gt; &quot;hi&quot;}, :headers =&gt; {:foo =&gt; &quot;bar&quot;})
       response.code.should == 200
-      JSON.parse(response.body)[&quot;REQUEST_METHOD&quot;].should == &quot;POST&quot;
+      json = JSON.parse(response.body)
+      json[&quot;REQUEST_METHOD&quot;].should == &quot;POST&quot;
+      json[&quot;QUERY_STRING&quot;].should == &quot;q=hi&quot;
     end
     
     it &quot;can run a PUT synchronously&quot; do</diff>
      <filename>spec/typhoeus/request_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6845d5c37f3518ae88e930726088fa960015e4de</id>
    </parent>
  </parents>
  <author>
    <name>Paul Dix</name>
    <email>paul@pauldix.net</email>
  </author>
  <url>http://github.com/pauldix/typhoeus/commit/9cb64ec6d945e07c208aa507941ade77119f86f2</url>
  <id>9cb64ec6d945e07c208aa507941ade77119f86f2</id>
  <committed-date>2009-11-02T08:42:23-08:00</committed-date>
  <authored-date>2009-11-02T08:42:23-08:00</authored-date>
  <message>modified behavior of POST to put params into the post_data (body) instead of the URL.</message>
  <tree>0b0f8a7575e9f5d8cdedea7b2a66777029d63414</tree>
  <committer>
    <name>Paul Dix</name>
    <email>paul@pauldix.net</email>
  </committer>
</commit>
