Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18515040
Puppet MIME validation
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Krenair
May 24 2018, 10:53 PM
2018-05-24 22:53:31 (UTC+0)
Size
533 B
Referenced Files
None
Subscribers
None
Puppet MIME validation
View Options
$ 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
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842421
Default Alt Text
Puppet MIME validation (533 B)
Attached To
Mode
P7150 Puppet MIME validation
Attached
Detach File
Event Timeline
Log In to Comment