X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_headers_api.c;h=2af2da0d71258cd0387ca7d78601fe642a419a96;hp=b7295ef59b65ca1d0c8c919c9f9507f22f384b1c;hb=9ba977318408ae1a35bdeee7062db1dfeae31510;hpb=9ae4a76b5f0f81518152731e5d93ab80092fe367 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); } }