On 21 Dec 2011, at 5:48 PM, Ruediger Pluem wrote:

> Ahh. Thanks for the pointer. Missed that it got set as a Warning header. I 
> thought
> that this string got logged :-). Hence my confusion.
> Anyway shouldn't we #define 299 to a selfspeaking name like other HTTP codes 
> such that
> this is recognized faster by the code reader?

We currently don't (mod_cache being the biggest place we use warnings), but 
you're right, we should.

Ideally I'd like an API to set and test for warning codes, something like:

AP_DECLARE(void) ap_set_warning(request_rec *r, int code, const char *message);
AP_DECLARE(int) ap_is_warning(request_rec *r, int code);

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to