rails/rails — pull request #4079 by drogus (2011-12-20 20:12:11+00:00)
Title: Fix http digest authentication when url ends with `/` or `?`

This is attempt to fix bugs #4038 and #3228. The problem is that PATH_INFO can be changed, so while checking for authentication it can differ from original value. That's why we need to save ORIGINAL_PATH, which acts similarly to REQUEST_URI, but since REQUEST_URI is unreliable, we can't use it.