Skip to content

Commit

Permalink
update http example with EncodeUtil class
Browse files Browse the repository at this point in the history
  • Loading branch information
stensonb committed Dec 4, 2013
1 parent 4809418 commit 9743147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main

unless $user and $passwd
target = t2.target_name
target = Net::NTLM::decode_utf16le(target) if t2.has_flag?(:UNICODE)
target = Net::NTLM::EncodeUtil.decode_utf16le(target) if t2.has_flag?(:UNICODE)
puts "Target: #{target}"
print "User name: "
($user = $stdin.readline).chomp!
Expand Down

0 comments on commit 9743147

Please sign in to comment.