unfiltered/unfiltered — pull request #91 by dwestheide (2011-11-01 18:47:44+00:00)
Title: Making errorHeader more robust and generic

Sorry for the additional effort, Doug, but I noticed that the errorHeader method I introduced with my last pull request should probably be more robust than the first, somewhat naive implementation:

While it was behaving correctly for input that is in accordance with the Bearer and MAC specs, it was prone to producing an invalid header value if an error description argument was given, but no error argument. This new version would still produce a syntactically correct value for the WWW-Authenticate header.