```ruby
# frozen_string_literal: true

module RSpec
  module Support
    module Body
      private

      def body_for(value, verb)
        return "" if verb.casecmp?("head")
        value
      end
    end
  end
end

RSpec.configure do |config|
  config.include RSpec::Support::Body
end
```

Fix build for 2.3 and JRuby
user
```ruby
# frozen_string_literal: true

module RSpec
  module Support
    module Body
      private

      def body_for(value, verb)
        return "" if verb.downcase == "head" # rubocop:disable Performance/Casecmp
        value
      end
    end
  end
end

RSpec.configure do |config|
  config.include RSpec::Support::Body
end
```
assistant