Guest User

Untitled

a guest
Mar 20th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.51 KB | None | 0 0
  1. irb(main):049:0> example = URI("https://bar.com")
  2. => #<URI::HTTPS:0x00000001326a08 URL:https://bar.com>
  3. irb(main):050:0> example.user = 'foo'
  4. => "foo"
  5. irb(main):051:0> example.password = 'test!@#$%^&*()'
  6. URI::InvalidComponentError: bad component(expected user component): test!@#$%^&*()
  7.     from /opt/chefdk/embedded/lib/ruby/2.1.0/uri/generic.rb:440:in `check_password'
  8.     from /opt/chefdk/embedded/lib/ruby/2.1.0/uri/generic.rb:513:in `password='
  9.     from (irb):51
  10.     from /opt/chefdk/embedded/bin/irb:11:in `<main>'
Advertisement
Add Comment
Please, Sign In to add comment