<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -84,6 +84,10 @@ module Resourceful
       self
     end
 
+    def delete(k)
+      @raw_fields.delete(field_def(k).name)
+    end
+
     def merge(another)
       self.class.new(self).merge!(another)
     end</diff>
      <filename>lib/resourceful/header.rb</filename>
    </modified>
    <modified>
      <diff>@@ -123,6 +123,7 @@ module Resourceful
       logger.info(&quot;Authentication Required. Retrying with auth info&quot;)
       accessor.auth_manager.associate_auth_info(response)
       add_credentials!
+      @body.rewind if @body # Its a stringIO, and we already fed it to the adapter once, so rewind it when we try again
       response = fetch_response
     end
 </diff>
      <filename>lib/resourceful/request.rb</filename>
    </modified>
    <modified>
      <diff>@@ -82,11 +82,9 @@ module Resourceful
     end
 
     def body
-      return @body if  header['Content-Encoding'].nil? or header['Content-Encoding'].empty?
-      raise(NotImplementedError, 'Chained encodings are not supported') if header['Content-Encoding'].length &gt; 1
+      raise(NotImplementedError, 'Chained encodings are not supported') if header['Content-Encoding'] &amp;&amp; header['Content-Encoding'].length &gt; 1
+      encoding = header['Content-Encoding'] &amp;&amp; header['Content-Encoding'].first
 
-      encoding = header['Content-Encoding'].first
-      
       case encoding
       when nil
         # body is identity encoded; just return it</diff>
      <filename>lib/resourceful/response.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 Gem::Specification.new do |s|
   s.name = %q{resourceful}
-  s.version = &quot;0.7.0&quot;
+  s.version = &quot;0.6.4&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 1.2&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Paul Sadauskas&quot;]</diff>
      <filename>resourceful.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52e835c0375544c7185546b215f33a91f1ce17e5</id>
    </parent>
    <parent>
      <id>a07e526a084f8d1be9dd0356b9da39794b1c104e</id>
    </parent>
  </parents>
  <author>
    <name>Peter Williams</name>
    <email>pezra@barelyenough.org</email>
  </author>
  <url>http://github.com/pezra/resourceful/commit/3ae5223f8fb6ba4f60830b9a68896b074f887e28</url>
  <id>3ae5223f8fb6ba4f60830b9a68896b074f887e28</id>
  <committed-date>2009-10-06T08:20:17-07:00</committed-date>
  <authored-date>2009-10-06T08:20:17-07:00</authored-date>
  <message>Merged pauls changes</message>
  <tree>572fdb4a92e3e6555b511945d7588d8b56fdcb97</tree>
  <committer>
    <name>Peter Williams</name>
    <email>pezra@barelyenough.org</email>
  </committer>
</commit>
