Permalink
Browse files

use symbols for hash keys

  • Loading branch information...
1 parent 1ffc2cd commit 4617f9f641cc0a454377d0bf30a247b7395e9f82 @NARKOZ committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/whoaz/whois.rb
View
@@ -89,7 +89,7 @@ def query
url = URI WHOIS_URL
req = Net::HTTP::Post.new(url.path, 'Referer' => WHOIS_REFERER)
- req.set_form_data('lang' => 'en', 'domain' => post_domain.first, 'dom' => ".#{post_domain.last}")
+ req.set_form_data(:lang => 'en', :domain => post_domain.first, :dom => ".#{post_domain.last}")
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req)}
if res.code.to_i == 200

0 comments on commit 4617f9f

Please sign in to comment.