rails/rails — Issue #4038: http_digest_authentication error - fails with trailing slash - rails 3.1.3
Author: trevor
Created: 2011-12-19 22:09:46+00:00
State: open

* `http://localhost:3000/posts` works as expected
* `http://localhost:3000/posts/` will never validate authentication

verified on chrome and firefox against webrick, thin, and unicorn

```
class ApplicationController < ActionController::Base
protect_from_forgery

before_filter :authenticate

private

def authenticate
authenticated = authenticate_or_request_with_http_digest('mysite') do |username|
USERS[username]
end
request_http_digest_authentication if !authenticated
end
end
```

`ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]`

possibly related to #3228