Clean up Header qvalue parsing
This commit is contained in:
parent
7440d5d29c
commit
a1f4928ed5
|
|
@ -560,8 +560,10 @@ namespace Microsoft.Net.Http.Headers
|
||||||
quality = intPart;
|
quality = intPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quality < 0 || quality > 1)
|
if (quality > 1)
|
||||||
{
|
{
|
||||||
|
// reset quality
|
||||||
|
quality = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue