On 8 Jan 2002 [EMAIL PROTECTED] wrote:
> Date: 8 Jan 2002 07:41:12 -0800
> From: [EMAIL PROTECTED]
> Reply-To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: HTTPClient - setting default request headers impl Q
>
> What should happen if one calls setRequestHeader("foo", "bar"), and
> "foo" is already set to some value as the default header, and also, what
> should happen if things are the other way around?
>
> I think that setting a default header should take precedence, no?
>
In the servlet API, calling response.setHeader("foo", "bar") replaces any
previous "foo" values, while calling response.addHeader("foo", "bar") adds
an additional value. You might want to think about using that convention.
> Thanks,
> Otis
>
Craig McClanahan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>