<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,6 +30,10 @@ module RestClient
 		end
 	end
 
+	class NotModified &lt; Exception
+		ErrorMessage = 'NotModified'
+	end
+
 	# Authorization is required to access the resource specified.
 	class Unauthorized &lt; ExceptionWithResponse
 		ErrorMessage = 'Unauthorized'</diff>
      <filename>lib/request_errors.rb</filename>
    </modified>
    <modified>
      <diff>@@ -202,6 +202,8 @@ module RestClient
 				end
 
 				raise Redirect, url
+			elsif res.code == &quot;304&quot;
+				raise NotModified
 			elsif res.code == &quot;401&quot;
 				raise Unauthorized, res
 			elsif res.code == &quot;404&quot;
@@ -230,7 +232,7 @@ module RestClient
 		end
 
 		def response_log(res)
-			&quot;# =&gt; #{res.code} #{res.class.to_s.gsub(/^Net::HTTP/, '')} | #{(res['Content-type'] || '').gsub(/;.*$/, '')} #{res.body.size} bytes&quot;
+			&quot;# =&gt; #{res.code} #{res.class.to_s.gsub(/^Net::HTTP/, '')} | #{(res['Content-type'] || '').gsub(/;.*$/, '')} #{(res.body) ? res.body.size : nil} bytes&quot;
 		end
 
 		def display_log(msg)</diff>
      <filename>lib/rest_client.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5181306f231aad913e1aca36a7e05c4c54f75da5</id>
    </parent>
  </parents>
  <author>
    <name>T.Watanabe</name>
    <email>wtnabe@wt-srv.watanabe</email>
  </author>
  <url>http://github.com/pedro/rest-client/commit/f0b2e4488506b747894ad88973e04051f50d74b9</url>
  <id>f0b2e4488506b747894ad88973e04051f50d74b9</id>
  <committed-date>2008-12-17T11:26:53-08:00</committed-date>
  <authored-date>2008-10-14T07:38:13-07:00</authored-date>
  <message>add '304 Not Modified' support</message>
  <tree>213ceb0fb2c4a209e6ec34e373d620732766865b</tree>
  <committer>
    <name>Adam Wiggins</name>
    <email>adam@heroku.com</email>
  </committer>
</commit>
