@ -1,4 +1,4 @@
From ec462b7b974fc34110437010f862780fb2ee39a3 Mon Sep 17 00:00:00 2001
From 7bb4a6efee2f6f0c775df5f53b868e7c2e86919f Mon Sep 17 00:00:00 2001
From: Daniel Drake <dsd@laptop.org>
From: Daniel Drake <dsd@laptop.org>
Date: Thu, 14 Feb 2013 15:05:10 -0600
Date: Thu, 14 Feb 2013 15:05:10 -0600
Subject: [PATCH] (#18781) Be more tolerant of old clients in WEBrick server
Subject: [PATCH] (#18781) Be more tolerant of old clients in WEBrick server
@ -16,15 +16,15 @@ Here we patch the WEBrick constant which specifies the maximum size of
a HTTP GET request, increasing it to a value that should work for common
a HTTP GET request, increasing it to a value that should work for common
setups.
setups.
---
---
lib/puppet/util/monkey_patches.rb | 9 +++++++++
lib/puppet/util/monkey_patches.rb | 10 + +++++++++
1 file changed, 9 insertions(+)
1 file changed, 10 insertions(+)
Index: puppet-3.1.0 /lib/puppet/util/monkey_patches.rb
diff --git a/lib/puppet/util/monkey_patches.rb b /lib/puppet/util/monkey_patches.rb
===================================================================
index ca19fa4..f7b13a5 100644
--- puppet-3.1.0.orig /lib/puppet/util/monkey_patches.rb
--- a /lib/puppet/util/monkey_patches.rb
+++ puppet-3.1.0 /lib/puppet/util/monkey_patches.rb
+++ b /lib/puppet/util/monkey_patches.rb
@@ -3 56,3 +356,13 @@ unless Dir.respond_to?(:mktmpdir)
@@ -3 94,3 +394,13 @@ class OpenSSL::SSL::SSLContext
end
set_params(params)
end
end
end
end
+
+
@ -37,3 +37,6 @@ Index: puppet-3.1.0/lib/puppet/util/monkey_patches.rb
+ WEBrick::HTTPRequest.const_set("MAX_URI_LENGTH", 8192)
+ WEBrick::HTTPRequest.const_set("MAX_URI_LENGTH", 8192)
+ $VERBOSE = v
+ $VERBOSE = v
+end
+end
--
1.7.12.4 (Apple Git-37)