Branch: Tag:

2000-06-09

2000-06-09 12:21:00 by Martin Nilsson <mani@lysator.liu.se>

We cannot return a mapping when not running compatibility. Fixed auth-required.

Rev: server/modules/tags/rxmltags.pike:1.129

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version="$Id: rxmltags.pike,v 1.128 2000/06/02 13:26:55 nilsson Exp $"; + constant cvs_version="$Id: rxmltags.pike,v 1.129 2000/06/09 12:21:00 nilsson Exp $";   constant thread_safe=1;   constant language = roxen->language;   
268:    }   }    - mapping tag_auth_required (string tagname, mapping args, RequestID id) - { + class TagAuthRequired { +  inherit RXML.Tag; +  constant name = "auth-required"; +  constant flags = RXML.FLAG_EMPTY_ELEMENT; +  +  class Frame { +  inherit RXML.Frame; +  +  array do_return(RequestID id) {    mapping hdrs = Roxen.http_auth_required (args->realm, args->message);    if (hdrs->error) _error = hdrs->error;    if (hdrs->extra_heads)
278:    // foreach(indices(hdrs->extra_heads), string tmp)    // Roxen.add_http_header(_extra_heads, tmp, hdrs->extra_heads[tmp]);    if (hdrs->text) _rettext = hdrs->text; -  return hdrs; +  return 0;    } -  +  } + }      string tag_expire_time(string tag, mapping m, RequestID id)   {