Commit 986a51e
authored
fix(gzhttp): preserve qvalue when extra parameters follow in Accept-Encoding (#1116)
parseCoding() reset qvalue to DefaultQValue on every loop iteration,
causing "gzip;q=0.5;level=6" to incorrectly return qvalue=1.0 instead
of 0.5.
Move qvalue initialization before the loop.
Signed-off-by: Mathias Bogaert <mathias.bogaert@gmail.com>1 parent fbe3b12 commit 986a51e
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
| 884 | + | |
884 | 885 | | |
885 | 886 | | |
886 | | - | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments