Branch: Tag:

2001-08-15

2001-08-15 17:44:19 by Per Hedbor <ph@opera.com>

Support loading from URL even when running without threads. Let the user take the blame if the server hangs..

Rev: server/base_server/roxen.pike:1.698

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.697 2001/08/15 15:37:20 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.698 2001/08/15 17:44:19 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3706:    {    file=Stdio.File();    if(!file->open(f,"r") || !(data=file->read())) - #ifdef THREADS + // #ifdef THREADS    catch    {    data = Protocols.HTTP.get_url_nice( f )[1];    }; - #endif + // #endif    if( !data )    return 0;    }