http_response: avoid special-casing for Rack < 1.5
commit090829a95ba4e3c6fe4562c9feb8fde5382a44f4
authorEric Wong <e@80x24.org>
Tue, 19 May 2015 19:57:44 +0000 (19 19:57 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 Jun 2015 19:00:08 +0000 (1 19:00 +0000)
tree05766c1345e8731285b645ab88da2735c7c251b1
parent32fefc5742d1646d63a119b281baefcac551dfec
http_response: avoid special-casing for Rack < 1.5

Rack 1.4 and earlier will soon die out, so avoid having extra,
overengineered code and method dispatch to silently drop support
for mis-hijacking with old Rack versions.

This will cause improperly hijacked responses in all versions of
Rack to fail, but allows properly hijacked responses to work
regardless of Rack version.

Followup-to: commit fdf09e562733f9509d275cb13c1c1a04e579a68a
("http_request: support rack.hijack by default")
lib/unicorn/http_response.rb