- substract 10% instead of 50%, as already documented
authorMichael Wallner <mike@php.net>
Fri, 7 Oct 2005 18:52:55 +0000 (18:52 +0000)
committerMichael Wallner <mike@php.net>
Fri, 7 Oct 2005 18:52:55 +0000 (18:52 +0000)
http_headers_api.c

index b7295ef59b65ca1d0c8c919c9f9507f22f384b1c..2af2da0d71258cd0387ca7d78601fe642a419a96 100644 (file)
@@ -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);
                        }
                }