<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ module Thin
   # Raised when an incoming request is not valid
   # and the server can not process it.
   class InvalidRequest &lt; IOError; end
-  
+
   # A request sent by the client to the server.
   class Request
     # Maximum request body size before it is moved out of memory
@@ -13,7 +13,7 @@ module Thin
     MAX_BODY          = 1024 * (80 + 32)
     BODY_TMPFILE      = 'thin-body'.freeze
     MAX_HEADER        = 1024 * (80 + 32)
-    
+
     # Freeze some HTTP header names &amp; values
     SERVER_SOFTWARE   = 'SERVER_SOFTWARE'.freeze
     HTTP_VERSION      = 'HTTP_VERSION'.freeze
@@ -24,7 +24,7 @@ module Thin
     CONNECTION        = 'HTTP_CONNECTION'.freeze
     KEEP_ALIVE_REGEXP = /\bkeep-alive\b/i.freeze
     CLOSE_REGEXP      = /\bclose\b/i.freeze
-    
+
     # Freeze some Rack header names
     RACK_INPUT        = 'rack.input'.freeze
     RACK_VERSION      = 'rack.version'.freeze
@@ -32,16 +32,16 @@ module Thin
     RACK_MULTITHREAD  = 'rack.multithread'.freeze
     RACK_MULTIPROCESS = 'rack.multiprocess'.freeze
     RACK_RUN_ONCE     = 'rack.run_once'.freeze
-    
+
     # CGI-like request environment variables
     attr_reader :env
-    
+
     # Unparsed data of the request
     attr_reader :data
-    
+
     # Request body
     attr_reader :body
-    
+
     def initialize
       @parser   = HttpParser.new
       @data     = ''
@@ -49,36 +49,36 @@ module Thin
       @body     = StringIO.new
       @env      = {
         SERVER_SOFTWARE   =&gt; SERVER,
-        
+
         # Rack stuff
         RACK_INPUT        =&gt; @body,
-        
+
         RACK_VERSION      =&gt; VERSION::RACK,
         RACK_ERRORS       =&gt; STDERR,
-        
+
         RACK_MULTITHREAD  =&gt; false,
         RACK_MULTIPROCESS =&gt; false,
         RACK_RUN_ONCE     =&gt; false
       }
     end
-        
+
     # Parse a chunk of data into the request environment
     # Raises a +InvalidRequest+ if invalid.
     # Returns +true+ if the parsing is complete.
     def parse(data)
       if @parser.finished?  # Header finished, can only be some more body
-        body &lt;&lt; data        
+        body &lt;&lt; data
       else                  # Parse more header using the super parser
         @data &lt;&lt; data
-        raise InvalidRequest, 'Header longer than allowed' if @data.size &gt; MAX_HEADER 
-        
+        raise InvalidRequest, 'Header longer than allowed' if @data.size &gt; MAX_HEADER
+
         @nparsed = @parser.execute(@env, @data, @nparsed)
 
         # Transfert to a tempfile if body is very big
         move_body_to_tempfile if @parser.finished? &amp;&amp; content_length &gt; MAX_BODY
       end
-      
-      
+
+
       if finished?   # Check if header and body are complete
         @data = nil
         @body.rewind
@@ -87,17 +87,17 @@ module Thin
         false        # Not finished, need more data
       end
     end
-    
+
     # +true+ if headers and body are finished parsing
     def finished?
       @parser.finished? &amp;&amp; @body.size &gt;= content_length
     end
-    
+
     # Expected size of the body
     def content_length
       @env[CONTENT_LENGTH].to_i
     end
-    
+
     # Returns +true+ if the client expect the connection to be persistent.
     def persistent?
       # Clients and servers SHOULD NOT assume that a persistent connection
@@ -105,7 +105,7 @@ module Thin
       # signaled. (http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html)
       if @env[HTTP_VERSION] == HTTP_1_0
         @env[CONNECTION] =~ KEEP_ALIVE_REGEXP
-      
+
       # HTTP/1.1 client intends to maintain a persistent connection unless
       # a Connection header including the connection-token &quot;close&quot; was sent
       # in the request
@@ -113,24 +113,24 @@ module Thin
         @env[CONNECTION].nil? || @env[CONNECTION] !~ CLOSE_REGEXP
       end
     end
-    
+
     def remote_address=(address)
       @env[REMOTE_ADDR] = address
     end
-    
+
     def forwarded_for
       @env[FORWARDED_FOR]
     end
-    
+
     def threaded=(value)
       @env[RACK_MULTITHREAD] = value
     end
-    
+
     # Close any resource used by the request
     def close
       @body.delete if @body.class == Tempfile
-    end    
-    
+    end
+
     private
       def move_body_to_tempfile
         current_body = @body
@@ -138,7 +138,7 @@ module Thin
         @body = Tempfile.new(BODY_TMPFILE)
         @body.binmode
         @body &lt;&lt; current_body.read
-        @env[RACK_INPUT] = @body        
+        @env[RACK_INPUT] = @body
       end
-  end  
-end
\ No newline at end of file
+  end
+end</diff>
      <filename>lib/thin/request.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2470ab0206716b445c23a1c81eb5f01dff06ad3a</id>
    </parent>
  </parents>
  <author>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </author>
  <url>http://github.com/macournoyer/thin/commit/d7704d7cd0ea270b002d96ede181244dbe8f5ccb</url>
  <id>d7704d7cd0ea270b002d96ede181244dbe8f5ccb</id>
  <committed-date>2008-08-02T07:43:14-07:00</committed-date>
  <authored-date>2008-08-02T06:17:15-07:00</authored-date>
  <message>Strip trailing spaces and untabify request.rb.</message>
  <tree>e807464bf8ed357863d4210f904b0cc4db880bed</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
