[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc1-141-gcdb2b90

Markus Roberts Markus at reality.com
Mon Aug 16 12:48:58 UTC 2010


The following commit has been merged in the upstream branch:
commit 8e31b528e139a2940d6932ab80375bb5eebfbe29
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