Branch: Tag:

2000-03-27

2000-03-27 13:19:06 by Johan Sundström <oyasumi@gmail.com>

Optimized /error? to /error/?, which fixed my previous problems
regarding lost error messages. Seems like the problem might have been
related to a disconnected my_fd and keep-alive; somebody might want to
look it up.

Rev: server/protocols/http.pike:1.228

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright ¬© 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.227 2000/03/26 15:44:44 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.228 2000/03/27 13:19:06 jhs Exp $";      #define MAGIC_ERROR   
1102:   {    if (!file || !line) return "<a>";    if(file[0]!='/') file = combine_path(getcwd(), file); -  return ("<a href=\"/(old_error,find_file)/error?"+ +  return ("<a href=\"/(old_error,find_file)/error/?"+    "file="+http_encode_string(file)+    (fun ? "&fun="+http_encode_string(fun) : "") +    "&off="+qq+
1156:    res += "</ul>\n\n";    }    -  res += ("<p><b><a href=\"/(old_error,plain)/error?error="+eid+"\">" +  res += ("<p><b><a href=\"/(old_error,plain)/error/?error="+eid+"\">"    "Generate text only version of this error message, for bug reports"+    "</a></b></p>\n\n");    return res+"</body></html>";