Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P7150
Puppet MIME validation
Active
Public
Actions
Authored by
Krenair
on May 24 2018, 10:53 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Puppet
Upstream
Referenced Files
F18515040: Puppet MIME validation
May 24 2018, 10:53 PM
2018-05-24 22:53:31 (UTC+0)
Subscribers
None
$ irb
irb(main):001:0> require 'puppet'
=> true
irb(main):002:0> require 'puppet/network/format_support'
=> false
irb(main):003:0> Puppet::Network::FormatHandler.format_to_canonical_name('application/json')
ArgumentError: No format match the given format name or mime-type (application/json)
from /usr/lib/ruby/vendor_ruby/puppet/network/format_handler.rb:65:in `format_to_canonical_name'
from (irb):3
from /usr/bin/irb:11:in `<main>'
irb(main):004:0> Puppet::Network::FormatHandler.format_to_canonical_name('text/pson')
=> :pson
Event Timeline
Krenair
created this paste.
May 24 2018, 10:53 PM
2018-05-24 22:53:31 (UTC+0)
Krenair
updated the paste's language from
ruby
to
autodetect
.
Krenair
mentioned this in
T194962: Create and deploy a centralized letsencrypt service
.
May 24 2018, 11:33 PM
2018-05-24 23:33:05 (UTC+0)
Log In to Comment