You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Dirk.vanGulik" <Di...@jrc.it> on 1997/06/27 11:48:33 UTC

Am I really this stupid

Just a tidbit of mod_negotiate.c; which keeps doing
strange things to the variant record;

This is the bit of code

#define DEBUG(x) { printf("mod_neg: "); printf x; printf("\n"); }

void set_encoding_quality(negotiation_state *neg, var_rec *variant)
{
    int i;
    accept_rec *accept_recs = (accept_rec *)neg->accept_encodings->elts;
    char *enc = variant->content_encoding;

    if (!enc || is_identity_encoding(enc)) {
        variant->encoding_quality = 1.0;		/* ?? */
DEBUG(("Exit %f",variant->encoding_quality));
        return;
    	};

And this is the debug output

	Exit 0.0

I am being braindead; what zaps that value ?!?!???

Dw.