about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--doc/site/src/docs/pound.page13
-rw-r--r--lib/mongrel.rb2
2 files changed, 9 insertions, 6 deletions
diff --git a/doc/site/src/docs/pound.page b/doc/site/src/docs/pound.page
index 616e30c..df0cf7b 100644
--- a/doc/site/src/docs/pound.page
+++ b/doc/site/src/docs/pound.page
@@ -16,7 +16,7 @@ h2. Requirements
 
 We assume that the following:
 
-* Pound and the Mongrel cluster are running on the same machine [1].
+* Pound and the monogrel cluster are running on the same machine[1].
 * *Pound 2.0.4* is built and installed, including SSL support if desired.
 * The *mongrel* gem is installed.
 * The *mongrel_cluster* gem is installed.
@@ -111,8 +111,8 @@ Our Rails application should now be available at http://127.0.0.1/ and https://1
 
 h2. Testing SSL in Rails
 
-The line @AddHeader "X-Forwarded-Proto: https"@[2] in the ListenHTTPS section tells pound to add
-a header to the request as it is passed back to the mongrel servers.  This will tell the rails application
+The line @AddHeader "X-Forwarded-Proto: https"@ in the ListenHTTPS section tells pound to add
+a header to the request as it is passed back to the mongrel servers[2].  This will tell the rails application
 that the request was originally an SSL request.  We can test this with the following simple Rails
 controller, app/controller/test_controller.rb:
 <pre>
@@ -125,16 +125,17 @@ end
 </code>
 </pre>
 And the acompanying view, app/views/test/index.rhtml:
+
 <pre>
-<code>
 <h1>test</h1>
-SSL: <%= @sslyn %>
-</code>
+SSL: < %= @sslyn %>
 </pre>
 
 Visiting @http://127.0.0.1/Test/@ should show @SSL: false@ while visiting @https://127.0.0.1/Test/@
 should return @SSL: true@.
 
+<hr>
+
 fn1. It is not required that pound run on the same machine as the mongrel servers.  It was just chosen
 for this example.
 
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index 780f9bd..3cc6beb 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -387,6 +387,8 @@ module Mongrel
             @socket.write(chunk)
           end
         end
+
+        @body_send = true
       end
     rescue EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF
       # ignore these since it means the client closed off early