Fix specs for jruby

Hi,
these commits should fix two failing specs on JRuby provided that you use catchup branch of my fork of http-parser.java ( https://github.com/spariev/http-parser.java )