Permalink
Browse files

Not sure why localhost is slow on Windows in Ruby 1.9.2 now, vs. IP a…

…ddress, but this makes it better again.
  • Loading branch information...
1 parent 09d9135 commit 3f730b23b439c6d72cf1cf0dc834039e89cf5010 @deadprogram deadprogram committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kidsruby/interface.rb
@@ -19,7 +19,7 @@ def path
end
def call(method, param = nil)
- loc = "http://localhost:8080#{path}#{method}"
+ loc = "http://127.0.0.1:8080#{path}#{method}"
loc = loc + "?#{URI.escape(param)}" if param
uri = URI.parse(loc)
Reply.new(Net::HTTP.get_response(uri))

0 comments on commit 3f730b2

Please sign in to comment.