Little patch for modules/HTTPLoop/wwwserver.pike
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2772
Reported by @grubba
From: Xavier Beaudouin <kiwi@oav.net>
To: "pike@roxen.com" <pike@roxen.com>
Date: Fri, 15 Feb 2002 19:19:48 +0100 (CET)
Subject: Little patch for modules/HTTPLoop/wwwserver.pike
Hello !
Just a little patch for the testfile of httploop module... Since Pike 7.2/7.3 is more strict, it cannot be compiled :)
Here is the patch (applicable to 7.2.296 snapshot):
--- wwwserver.pike.old Sun Nov 21 02:43:22 1999
+++ wwwserver.pike Fri Feb 15 20:19:05 2002
@@ -46,11 +46,11 @@
inherit HTTPLoop.prog;
}
-void handle(object o)
+mixed|void handle(object o)
{
string url = o->not_query;
string f = combine_path(BASE, url[1..]);
- array s;
+ object s;
if(f[-1] == '/' && (s = file_stat(f+"index.html"))) {
url += "index.html";
f += "index.html";
/Xavier