# File lib/puppet/network/http/handler.rb, line 43 43: def request_format(request) 44: if header = content_type_header(request) 45: header.gsub!(/\s*;.*$/,'') # strip any charset 46: format = Puppet::Network::FormatHandler.mime(header) 47: raise "Client sent a mime-type (%s) that doesn't correspond to a format we support" % header if format.nil? 48: return format.name.to_s if format.suitable? 49: end 50: 51: raise "No Content-Type header was received, it isn't possible to unserialize the request" 52: end