Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't load broken backports on jruby, either

  • Loading branch information...
commit 382c3c560f661df4fe9c1b31bb8d291721977949 1 parent 5dc7bac
Konstantin Haase rkh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/rack/utils.rb
3  lib/rack/utils.rb
View
@@ -5,10 +5,11 @@
require 'rack/multipart'
major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i }
+ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
if major == 1 && minor < 9
require 'rack/backports/uri/common_18'
-elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318
+elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318 && RUBY_ENGINE != 'jruby'
require 'rack/backports/uri/common_192'
elsif major == 1 && minor == 9 && patch == 3 && RUBY_PATCHLEVEL < 125
require 'rack/backports/uri/common_193'
Please sign in to comment.
Something went wrong with that request. Please try again.