Take old code back from https://github.com/jruby/warbler/commit/79f830fcd335fc17dabab4d6f5821cb8c40f1ade#L2L35
wrote a spec to replicate issue #156