Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):049:0> example = URI("https://bar.com")
- => #<URI::HTTPS:0x00000001326a08 URL:https://bar.com>
- irb(main):050:0> example.user = 'foo'
- => "foo"
- irb(main):051:0> example.password = 'test!@#$%^&*()'
- URI::InvalidComponentError: bad component(expected user component): test!@#$%^&*()
- from /opt/chefdk/embedded/lib/ruby/2.1.0/uri/generic.rb:440:in `check_password'
- from /opt/chefdk/embedded/lib/ruby/2.1.0/uri/generic.rb:513:in `password='
- from (irb):51
- from /opt/chefdk/embedded/bin/irb:11:in `<main>'
Advertisement
Add Comment
Please, Sign In to add comment