Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7415529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:19:13+00:00 2026-05-29T07:19:13+00:00

I am using Rack::SSL in my Rails 3.1 application to enable SSL connections. I’ve

  • 0

I am using Rack::SSL in my Rails 3.1 application to enable SSL connections.

I’ve added gem 'rack-ssl' to my Gemfile and

require 'rack/ssl'
config.middleware.insert_before ActionDispatch::Static, Rack::SSL, :exclude => proc { |env| env['HTTPS'] != 'on' }

to my environment configuration.

Accessing a resource over HTTP works fine, while using HTTPS for the same resource results in

[2012-02-04 02:18:32] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
[2012-02-04 02:18:35] ERROR bad Request-Line `\x16\x03\x01\x00?\x01\x00\x00?\x03\x01O,?m9?D??Puo'?w8r?U\x17RO?r????C?Q#\x00\x006?'.
[2012-02-04 02:18:35] ERROR bad Request-Line `\x16\x03\x00\x00A\x01\x00\x00=\x03\x00O,?mS67"?q???(T?27\x18B????C\x19?*B?\x00\x00\x16\x00/\x00\x05\x00\x04\x005\x00'.
[2012-02-04 02:18:37] ERROR bad Request-Line `\x16\x03\x00\x00A\x01\x00\x00=\x03\x00O,?oG\x18??%\eJ?n\x1Czt'V?5?B?3?1???Џ?\x00\x00\x16\x00/\x00\x05\x00\x04\x005\x00'.
[2012-02-04 02:18:38] ERROR bad Request-Line `\x16\x03\x00\x00A\x01\x00\x00=\x03\x00O,?p+EPU\x0F?\x00??/,?X?"@4}?ބE?c?o+?\x00\x00\x16\x00/\x00\x05\x00\x04\x005\x00'.

Any ideas what might cause this behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:19:14+00:00Added an answer on May 29, 2026 at 7:19 am

    It looks like you’re using the https protocol for a http connection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my Gemfile : source 'http://rubygems.org' gem 'rails', '3.0.0' gem 'sqlite3-ruby', :require =>
Not setting default_locale in Rails 3.1.3 application.rb: config.i18n.default_locale = :en I have got 3
I am using Pow to serve a Rack application on Mac OS X. http://myapp.dev
I am building an Ruby application using Sinatra (over Rack/Thin) and I want to
I have my beginner Ruby application working perfectly on my local server using Rack
I have a Ruby on Rails application I'm using Ruby 1.9 and Rails 2.3.4
Context : an application uses a piece of Rack middleware that must be setup
Using a restful resource in Rails, I would like to be able to insert
My web app is using Rack 1.4.0, Sinatra v1.2.6, Thin v1.2.11, Ruby v1.9.2p180 Navigating
How do I get Apache-style server logs with Heroku? I'm using Rails on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.