Commit d7c4c24
committed
Don't rely on transparent decompression in list_aur
The current AUR package list code relies on the reqwest client library
to transparently decompress the packages.gz file. This only works if
the server provides the 'Content-Encoding: gzip" HTTP header, which
appears to have changed recently.
This patch explicitly decompresses the package list if no encoding
information is provided by the server.
Fixes: #1447
v2: blindly decompress with fall back on error, since reqwest strips
the content encoding header when it transparently decompresses.
Signed-off-by: Edwin Peer <[email protected]>1 parent 789bead commit d7c4c24
3 files changed
+9
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
0 commit comments