Add timeout for Jruby
why perform twice?
fix wrong content-length issue on JRUBY

- ex: github.com