[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, squeeze, updated. debian/2.6.0-2-8-gb4e82e9

Stig Sandbeck Mathisen ssm at debian.org
Fri Aug 27 21:17:40 UTC 2010


The following commit has been merged in the squeeze branch:
commit a344e58b1ddc9de3abf98d166463d4df56f983c0
Author: Brice Figureau <brice-puppet at daysofwonder.com>
Date:   Wed Aug 4 18:46:29 2010 +0200

    Passenger needs HTTP headers values to be string
    
    When streaming a file through rack, we set the Content-Length header
    to be the size of the transmitted file.
    This size is an int, and recent passenger versions only support string
    values.
    
    Signed-off-by: Brice Figureau <brice-puppet at daysofwonder.com>

diff --git a/lib/puppet/network/http/rack/rest.rb b/lib/puppet/network/http/rack/rest.rb
index e5f50c4..b7e1d97 100644
--- a/lib/puppet/network/http/rack/rest.rb
+++ b/lib/puppet/network/http/rack/rest.rb
@@ -41,7 +41,7 @@ class Puppet::Network::HTTP::RackREST < Puppet::Network::HTTP::RackHttpHandler
     unless result.is_a?(File)
       response.write result
     else
-      response["Content-Length"] = result.stat.size
+      response["Content-Length"] = result.stat.size.to_s
       response.body = RackFile.new(result)
     end
   end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list