spray/spray — pull request #358 by MarkvanderTol (2013-07-04 20:18:26+00:00)
Title: Render `WWW-Authenticate` header also for AuthenticationFailedRejection, fixes #188

When authentication fails, browsers didn't offer a possibilty to re-enter new credentials because of the missing WWW-Authenticate header. This patch changes the AuthenticationFailedRejection to include "scheme" and "params" fields, just like AuthenticationFailedRejection.