I would vote for some type of warning rather then an exception. In the past I've had
the occation to make up my own headers.
-Aaron
----- Original Message -----
From: "Chuck Esterbrook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 11:14 PM
Subject: Re: [Webware-discuss] SetHeader help - SOLVED
> On Monday 19 November 2001 07:06 am, Aaron Held wrote:
> > This was just a typo (that caused me a few hours of grief)
> >
> > I had written
> > self.response().setHeader('Content-Type:','application/octet-stream')
> >
> > The Content-Type has a ':' after it. I took that out and made it
> > lowercase and all is well.
> >
> > Thanks for your help.
> >
> > -Aaron
>
> I imagine that's a common mistake and I have made it myself. Perhaps
> setHeader() should axe a trailing colon either silently or printing a
> warning to the console. I suppose we could also be harsh and raise an
> exception...
>
> -Chuck
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss