Branch: Tag:

2002-01-30

2002-01-30 00:16:24 by Martin Stjernholm <mast@lysator.liu.se>

Renamed the response header scope to "header", to be more consistent
with "cookie".

Rev: server/base_server/rxml.pike:1.324

3:   //   // The Roxen RXML Parser. See also the RXML Pike modules.   // - // $Id: rxml.pike,v 1.323 2002/01/29 21:43:39 mast Exp $ + // $Id: rxml.pike,v 1.324 2002/01/30 00:16:24 mast Exp $         inherit "rxmlhelp";
101:       misc[" _ok"] = misc[" _prev_ok"] = 1;    misc[" _error"] = 200; -  ctx->add_scope ("headers", misc[" _extra_heads"] = ([ ])); +  ctx->add_scope ("header", misc[" _extra_heads"] = ([ ]));    if(id->misc->stat) misc[" _stat"] = id->misc->stat;    }   
110:    RequestID id = ctx->id;    mapping misc = ctx->misc;    -  mapping extra_heads = ctx->get_scope ("headers"); +  mapping extra_heads = ctx->get_scope ("header");   #ifdef DEBUG    if (extra_heads != misc[" _extra_heads"])    // Someone has probably replaced either of these mappings, which
119: Inside #if defined(DEBUG)
   // id->misc->defines[" _extra_heads"]. Therefore we    // intentionally propagate the scope mapping here, so that the    // error is more likely to be discovered. -  report_warning ("Warning: The \"headers\" scope and " -  "RXML_CONTEXT->misc[\" _extra_heads\"] " -  "isn't the same mapping.\n"); +  report_warning ("Warning: The \"header\" scope %O and " +  "RXML_CONTEXT->misc[\" _extra_heads\"] %O " +  "isn't the same mapping.\n", +  extra_heads, misc[" _extra_heads"]);   #endif    if(sizeof(extra_heads))    if (id->misc->moreheads)
198:    if (!defines[" _error"])    defines[" _error"] = 200;    if (!defines[" _extra_heads"]) -  ctx->add_scope ("headers", defines[" _extra_heads"] = ([ ])); +  ctx->add_scope ("header", defines[" _extra_heads"] = ([ ]));    if (!defines[" _stat"] && id->misc->stat)    defines[" _stat"] = id->misc->stat;    }