<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,8 @@
 fakeweb (development)
 
+* fix the #http_version of :file and :string responses, which was returning the
+  request URI instead of something sensible like &quot;1.0&quot; [Chris Kampmeier]
+
 * add method aliases in the Net::HTTP patch to eliminate warnings when running
   with -w [Joshua Clingenpeel]
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ module FakeWeb
         response = baked_response
       else
         code, msg = meta_information
-        response = Net::HTTPResponse.send(:response_class, code.to_s).new(uri, code.to_s, msg)
+        response = Net::HTTPResponse.send(:response_class, code.to_s).new(&quot;1.0&quot;, code.to_s, msg)
         response.instance_variable_set(:@body, content)
       end
 </diff>
      <filename>lib/fake_web/responder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -504,4 +504,16 @@ class TestFakeWeb &lt; Test::Unit::TestCase
       Net::HTTP.get(URI.parse(&quot;http://example.com&quot;))
     end
   end
+
+  def test_http_version_from_string_response
+    FakeWeb.register_uri(:get, &quot;http://example.com&quot;, :string =&gt; &quot;example&quot;)
+    response = Net::HTTP.start(&quot;example.com&quot;) { |http| http.get(&quot;/&quot;) }
+    assert_equal &quot;1.0&quot;, response.http_version
+  end
+
+  def test_http_version_from_file_response
+    FakeWeb.register_uri(:get, &quot;http://example.com&quot;, :file =&gt; File.dirname(__FILE__) + '/fixtures/test_example.txt')
+    response = Net::HTTP.start(&quot;example.com&quot;) { |http| http.get(&quot;/&quot;) }
+    assert_equal &quot;1.0&quot;, response.http_version
+  end
 end</diff>
      <filename>test/test_fake_web.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3f201e035d5c748c2a468081fc40f3ea7a372bef</id>
    </parent>
  </parents>
  <author>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </author>
  <url>http://github.com/rubyist/fakeweb/commit/92a6dfa47abd0656e5c9a8c18baccfe89f864746</url>
  <id>92a6dfa47abd0656e5c9a8c18baccfe89f864746</id>
  <committed-date>2009-05-26T02:31:20-07:00</committed-date>
  <authored-date>2009-05-26T02:20:44-07:00</authored-date>
  <message>Fix that :string and :file responses were returning the request URI as the HTTP version, instead of something sensible like &quot;1.0&quot;</message>
  <tree>a488d035edb6126d463012f3888198e66a1e7231</tree>
  <committer>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </committer>
</commit>
