rails/rails — pull request #4928 by rmm5t (2012-02-07 18:30:50+00:00)
Title: Fix force_ssl redirect with params

This is a cherry-pick from 3-2-stable. For more info, see https://github.com/rails/rails/pull/4916

---

`ActionController.force_ssl` redirects http URLs to their https equivalent; however, when a URL contains a query string, the resulting redirect lacked the original query string.

For example, this URL (with force_ssl):

http://example.com/widgets/new?name=foo

Only redirects to:

https://example.com/widgets/new