<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/fixtures/google_response_from_curl</filename>
    </added>
    <added>
      <filename>test/fixtures/google_response_with_transfer_encoding</filename>
    </added>
    <added>
      <filename>test/fixtures/google_response_without_transfer_encoding</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -260,7 +260,7 @@ class TestFakeWeb &lt; Test::Unit::TestCase
   end
 
   def test_mock_get_with_request_from_file_as_registered_uri
-    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/test_request')
+    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/google_response_without_transfer_encoding')
     response = nil
     Net::HTTP.start('www.google.com') do |query|
       response = query.get('/')
@@ -270,7 +270,7 @@ class TestFakeWeb &lt; Test::Unit::TestCase
   end
 
   def test_mock_post_with_request_from_file_as_registered_uri
-    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/test_request')
+    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/google_response_without_transfer_encoding')
     response = nil
     Net::HTTP.start('www.google.com') do |query|
       response = query.post('/', '')
@@ -436,7 +436,7 @@ class TestFakeWeb &lt; Test::Unit::TestCase
   end
   
   def test_mock_request_using_response_has_valid_transfer_encoding_header
-    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/test_request')
+    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/google_response_with_transfer_encoding')
     response = nil
     Net::HTTP.start('www.google.com') do |query|
       response = query.get('/')
@@ -446,14 +446,24 @@ class TestFakeWeb &lt; Test::Unit::TestCase
   end
 
   def test_mock_request_using_response_without_transfer_encoding_header_does_not_have_a_transfer_encoding_header
-    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/test_request_without_transfer_encoding')
+    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/google_response_without_transfer_encoding')
     response = nil
     Net::HTTP.start('www.google.com') do |query|
       response = query.get('/')
     end
     assert !response.key?('transfer-encoding')
   end
-  
+
+  def test_mock_request_using_response_from_curl_has_original_transfer_encoding_header
+    FakeWeb.register_uri('http://www.google.com/', :response =&gt; File.dirname(__FILE__) + '/fixtures/google_response_from_curl')
+    response = nil
+    Net::HTTP.start('www.google.com') do |query|
+      response = query.get('/')
+    end
+    assert_not_nil response['transfer-encoding']
+    assert response['transfer-encoding'] == 'chunked'
+  end
+
   def test_txt_file_should_have_three_lines
     FakeWeb.register_uri('http://www.google.com/', :file =&gt; File.dirname(__FILE__) + '/fixtures/test_txt_file')
     response = nil</diff>
      <filename>test/test_fake_web.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/fixtures/test_request</filename>
    </removed>
    <removed>
      <filename>test/fixtures/test_request_without_transfer_encoding</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>edc1c6991cf0b13191648c32ebf4f79f1471fa4d</id>
    </parent>
  </parents>
  <author>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </author>
  <url>http://github.com/chrisk/fakeweb/commit/04dbfb33fb5712afd1e5e2bb5063984798daceeb</url>
  <id>04dbfb33fb5712afd1e5e2bb5063984798daceeb</id>
  <committed-date>2009-01-31T18:47:57-08:00</committed-date>
  <authored-date>2009-01-31T18:47:57-08:00</authored-date>
  <message>Clean up transfer-encoding tests to confirm current behavior

* rename from fixtures/test_request to test_response, since they're responses
* generate one response of each type: HTTP/1.1 with chunks, HTTP/1.0 without chunks, and HTTP/1.1 `curl -is`-style, which includes a &quot;Transfer-Encoding: chunked&quot; header but has an already-decoded body (see http://groups.google.com/group/fakeweb-users/msg/2e08e373ed34963c for gory details)</message>
  <tree>e1b153c39d86a07c57da4d18cbfe1e7a30adf70a</tree>
  <committer>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </committer>
</commit>
