You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Alexei Kosut <ak...@nueva.pvt.k12.ca.us> on 1996/10/22 06:26:33 UTC

A complaint

I was just playing with the latest 1.2-dev, and I notice that Roy's
new error-code code has taken Apache one step backwards: Namely, that
we've apparently reverted to putting the status code in the HTML that
we send by default. I most certainly do not want to see "404 File Not
Found" as the title of error message. The browser may care, but the
user most certainly does not. The "File Not Found" we've used for
Apache since 0.8 is much better (the same applies to all the other
codes).

I'd be much happier with the following patch:

Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.61
diff -c -r1.61 http_protocol.c
*** http_protocol.c	1996/10/20 20:45:50	1.61
--- http_protocol.c	1996/10/22 04:25:54
***************
*** 1376,1382 ****
            r = r->prev;
      }
      {
! 	char *title = status_lines[idx];
  	BUFF *fd = c->client;
  	
          bvputs(fd,"<HEAD><TITLE>", title, "</TITLE></HEAD>\n<BODY><H1>", title,
--- 1376,1382 ----
            r = r->prev;
      }
      {
! 	char *title = 4 + status_lines[idx];
  	BUFF *fd = c->client;
  	
          bvputs(fd,"<HEAD><TITLE>", title, "</TITLE></HEAD>\n<BODY><H1>", title,


-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/



Re: A complaint

Posted by Tom Tromey <tr...@creche.cygnus.com>.
Alexei> The "File Not Found" we've used for Apache since 0.8 is much
Alexei> better (the same applies to all the other codes).

Alexei> I'd be much happier with the following patch:

Alexei> ! 	char *title = status_lines[idx];
Alexei> ! 	char *title = 4 + status_lines[idx];


My original version of this patch did do this.  I don't have an
opinion on whether or not it is the right thing to do.

But... if this is to be included, please include a comment explaining
the magic number "4".  And maybe a comment at the definition of
status_lines explaining the format.

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom


Re: A complaint

Posted by Brian Behlendorf <br...@organic.com>.
On Tue, 22 Oct 1996, James H. Cloos Jr. wrote:
> Roy> Perhaps it would be better if the TITLE contained the status code
> Roy> and the H1 did not.
> 
> Sounds like a good compromise.  I'm sure there are a lot of us who do
> want to see that info, somewhere, though the majority would likely not
> care.  (Or understand.)

Implemented and committed.

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS



Re: A complaint

Posted by "James H. Cloos Jr." <cl...@jhcloos.com>.
Roy> Perhaps it would be better if the TITLE contained the status code
Roy> and the H1 did not.

Sounds like a good compromise.  I'm sure there are a lot of us who do
want to see that info, somewhere, though the majority would likely not
care.  (Or understand.)

-JimC
-- 
James H. Cloos, Jr.         <URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com           Work: cloos@io.com
LPF,Usenix,SAGE,ISOC,ACLU   FB C2 B3 7A 50 44 AE 2D  C7 4C 1E C1 EF 7A FB 30