Simon Tournier <zimon.touto...@gmail.com> skribis:

> However, now I get:
>
> $ wget https://guix.gnu.org/sources.json

If you open it in a browser though, it’s fine, because browsers and in
fact many HTTP clients other than wget, honor ‘Content-Encoding’:

--8<---------------cut here---------------start------------->8---
$ wget -O/dev/null --debug https://guix.gnu.org/sources.json

[...]

---response begin---
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 16 Nov 2023 14:38:04 GMT
Content-Type: application/json
Content-Length: 2670848
Connection: keep-alive
Content-Encoding: gzip
Expires: Thu, 16 Nov 2023 17:38:04 GMT
Cache-Control: max-age=10800
Content-Security-Policy: frame-ancestors 'none'

--8<---------------cut here---------------end--------------->8---

[...]

> Well, it will break some consumers of packages.json and sources.json.
> To my knowledge, for sources.json at least, the only consumer is SWH and
> it appears to me easy to keep them in touch. :-)

It shouldn’t break consumers, their client will just transparently
decompress the stream (I checked with #swh-devel back then just in
case).

That said, if you become aware of actual breakage, we can revisit this!

Thanks,
Ludo’.

Reply via email to