pike.git / src / modules / _Roxen / roxen.c

version» Context lines:

pike.git/src/modules/_Roxen/roxen.c:273:    }    }    mapping_insert(headers, Pike_sp-2, Pike_sp-1);       pop_n_elems(2);    }    else if( in[i]=='\r' || in[i]=='\n' )    {    if( THP->mode & FLAG_THROW_ERROR )    { -  /* FIXME: Reset stack so that backtrace shows faulty header. */ +  /* Reset stack so that backtrace shows faulty header. */ +  pop_n_elems(3); +  push_string(make_shared_binary_string((const char*)(hp->pnt - str_len), +  str_len));    Pike_error("Malformed HTTP header.\n");    }    else    os = i+1;    }    }    f_aggregate( 3 ); /* data, firstline, headers */   }      static void f_hp_create( INT32 args )