RFC2616 : Do I really need to set WWW_Authenticate when returning 401?

Posted by Chris McCauley on Stack Overflow See other posts from Stack Overflow or by Chris McCauley
Published on 2010-04-07T21:27:12Z Indexed on 2010/04/07 21:33 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

According to RFC2616 if I return 401 in response to a request to my (Ruby) server, I "MUST include a WWW-Authenticate header field." Is this really true? Not setting the header seems to have no negative impact. I'm using Merb as a web framework and it doesn't force me to set the header.

Am I missing something or is this a rule more honoured in the breach?

© Stack Overflow or respective owner

Related posts about http

Related posts about http-header-fields