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