Branch: Tag:

2004-05-12

2004-05-12 21:07:36 by Martin Stjernholm <mast@lysator.liu.se>

Reverted some; it made http_auth_required and http_proxy_auth_required
incompatible.

Rev: server/etc/modules/Roxen.pmod:1.177

1:   // This is a roxen pike module. Copyright © 1999 - 2001, Roxen IS.   // - // $Id: Roxen.pmod,v 1.176 2004/05/12 20:59:02 mast Exp $ + // $Id: Roxen.pmod,v 1.177 2004/05/12 21:07:36 mast Exp $      #include <roxen.h>   #include <config.h>
681:   //! For more info, see RFC 2617.   {    if(!message) -  message = "<h1>Authentication failed.\n</h1>"; +  message = "<h1>Authentication failed.</h1>";    HTTP_WERR("Auth required ("+realm+")"); -  return http_status(401, message) +  return http_low_answer(401, message)    + ([ "extra_heads":([ "WWW-Authenticate":"basic realm=\""+realm+"\"",]),]);   }   
702:   //! realm="`realm'"</tt>. For more info, see RFC 2617.   {    if(!message) -  message = "<h1>Proxy authentication failed.\n</h1>"; -  return http_status(407, message) +  message = "<h1>Proxy authentication failed.</h1>"; +  return http_low_answer(407, message)    + ([ "extra_heads":([ "Proxy-Authenticate":"basic realm=\""+realm+"\"",]),]);   }