Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-25
1998-03-25 06:09:48 by Per Hedbor <ph@opera.com>
9a72d619aece237ddeb9ce794bf2db856d872e7f (
23
lines) (+
19
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Added CVS-id to the backtrace
Rev: server/protocols/http.pike:1.67
1:
// This is a roxen module. Copyright © 1996 - 1998, Idonex AB.
-
constant cvs_version = "$Id: http.pike,v 1.
66
1998/03/25
05
:
34
:
40
per Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
67
1998/03/25
06
:
09
:
48
per Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
682:
return res+"</body>"; }
+
array add_id(array from)
+
{
+
foreach(from[1], array q)
+
catch {
+
int id;
+
if(sscanf(Stdio.read_bytes(q[0]), "%*s$Id: http.pike,v 1.67 1998/03/25 06:09:48 per Exp $", id) == 4)
+
q[0] += " ("+id+")";
+
};
+
return from;
+
}
+
string generate_bugreport(array from) {
-
return ("Roxen version: "+version()+" ("+roxen->real_version+")\n"
-
"
Error
: "+
-
describe_backtrace(from)-(getcwd()+"/"));
+
return ("Roxen version: "+version()+
+
(roxen->real_version != version()?
" ("+roxen->real_version+")
":"")+
+
"\nRequested URL: "+not_query+(query?"?"+query:"")+"
\n"
+
"
\nError
: "+
+
describe_backtrace(
add_id(
from)
)
-(getcwd()+"/")
+
+
"\n\nRequest data:\n"+raw
);
} void internal_error(array err)