Branch: Tag:

2006-01-02

2006-01-02 02:42:02 by Martin Nilsson <mani@lysator.liu.se>

Duplicate request headers were added in the wrong order.

Rev: src/modules/_Roxen/roxen.c:1.48

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: roxen.c,v 1.47 2005/11/28 14:53:47 per Exp $ + || $Id: roxen.c,v 1.48 2006/01/02 02:42:02 nilsson Exp $   */      #define NO_PIKE_SHORTHAND
215:       if((tmp = low_mapping_lookup(headers, Pike_sp-2)))    { -  f_aggregate( 1 ); +     if( tmp->type == PIKE_T_ARRAY )    { -  +  f_aggregate( 1 );    ref_push_array(tmp->u.array);    map_delete(headers, Pike_sp-3);    f_add(2);    } else {    ref_push_string(tmp->u.string); -  f_aggregate(1); +  stack_swap(); +  f_aggregate(2);    map_delete(headers, Pike_sp-3); -  f_add(2); +     }    }    mapping_insert(headers, Pike_sp-2, Pike_sp-1);