From: Michael Wallner Date: Fri, 7 Oct 2005 18:52:55 +0000 (+0000) Subject: - substract 10% instead of 50%, as already documented X-Git-Tag: RELEASE_0_15_0~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9ba977318408ae1a35bdeee7062db1dfeae31510;p=m6w6%2Fext-http - substract 10% instead of 50%, as already documented --- diff --git a/http_headers_api.c b/http_headers_api.c index b7295ef..2af2da0 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -93,7 +93,7 @@ char *_http_negotiate_language_func(const char *test, double *quality, HashTable if ( (!strncasecmp(Z_STRVAL_PP(value), test, len)) && ( (Z_STRVAL_PP(value)[len] == '\0') || (Z_STRVAL_PP(value)[len] == '-'))) { - *quality /= 2; + *quality *= .9; return Z_STRVAL_PP(value); } }