Skip to content

Commit 40a0cfc

Browse files
committed
Merge pull request #11 from stensonb/update-http-example
update http example with EncodeUtil class
2 parents fd51f60 + 9743147 commit 40a0cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: examples/http.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def main
4848

4949
unless $user and $passwd
5050
target = t2.target_name
51-
target = Net::NTLM::decode_utf16le(target) if t2.has_flag?(:UNICODE)
51+
target = Net::NTLM::EncodeUtil.decode_utf16le(target) if t2.has_flag?(:UNICODE)
5252
puts "Target: #{target}"
5353
print "User name: "
5454
($user = $stdin.readline).chomp!

0 commit comments

Comments
 (0)