summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http/handler.rb
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2007-10-16 14:04:38 -0500
committerRick Bradley <rick@rickbradley.com>2007-10-16 14:04:38 -0500
commitabbc824ff4a565f0a0f1362b779252e876b86168 (patch)
treea8f3da778bfcc213e6976c131b9dd080b370d2eb /lib/puppet/network/http/handler.rb
parent2a497fff66a7827059b712e84dcaff171ccab6be (diff)
downloadpuppet-abbc824ff4a565f0a0f1362b779252e876b86168.tar.gz
puppet-abbc824ff4a565f0a0f1362b779252e876b86168.tar.xz
puppet-abbc824ff4a565f0a0f1362b779252e876b86168.zip
Tweak to move model lookup functionality into the Handler base class where it belongs. Robustifying the request sanitization a bit more.
Diffstat (limited to 'lib/puppet/network/http/handler.rb')
-rw-r--r--lib/puppet/network/http/handler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/network/http/handler.rb b/lib/puppet/network/http/handler.rb
index 54cec417b..77df113e6 100644
--- a/lib/puppet/network/http/handler.rb
+++ b/lib/puppet/network/http/handler.rb
@@ -2,6 +2,7 @@ class Puppet::Network::HTTP::Handler
def initialize(args = {})
raise ArgumentError unless @server = args[:server]
raise ArgumentError unless @handler = args[:handler]
+ @model = find_model_for_handler(@handler)
register_handler
end