1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-22 07:42:49 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Benjamin Brahmer
b99320dd4a
Check available compression types of curl (#2328)
Check an use available compression types of curl
use compression when downloading feed logo

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-25 09:37:29 +02:00
Mynacol
48e1ad1583 Use HTTP compression for downloads
As long as we use Feed-io < 6, we always use Guzzle (with Feed-io 6, we
need to choose a [HTTPlug](https://httplug.io/) library ourselves). Guzzle
[supports](https://docs.guzzlephp.org/en/stable/request-options.html#decode-content)
transparently decompressing gzip or deflate compressed responses, which is enabled by default.

Feed-io does this [by default](ffef9eaabe),
but as we override the headers, we have to add a fitting `Accept-Encoding` header as well.

Previously, my feed collection caused up to 45.9 MB download traffic per cronjob,
with this commit it is as low as 23.6 MB.

Signed-off-by: Mynacol <Mynacol@users.noreply.github.com>
2023-06-22 11:31:42 +02:00
Sean Molenaar
2baa7a2b91 Make PHPstan stricter
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-25 18:47:38 +01:00
Sean Molenaar
67b6c4e1b0 Fix psalm issues
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-12 13:29:08 +01:00
Sean Molenaar
35b53ecd40 OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 14:56:07 +02:00
Sean Molenaar
bc01761221 Fix repair step and test it
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 13:02:03 +02:00
Sean Molenaar
60ab4941cc Move to nextcloud config and update phpunit
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-25 19:18:04 +02:00
Carlos Silva
6c01164b9b Add the 'Accept' header to the request (#525)
* Add the 'Accept' header to the request

Some firewalls block requests without the Accept header on the HTTP(s) request as seen on issue #517,
so, just add the header to all requests and say we accept anything.

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>

* Use a more detailed Accept Header

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>

* Split up long line

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>
2019-08-16 07:14:20 +02:00
Sean Molenaar
9b915e24af Use a copy of the FeedIO client that doesn't specify a useragent 2019-03-18 10:39:32 +01:00
Sean Molenaar
6ed63bdedd Set nextcloud user agent 2019-03-18 10:39:32 +01:00
Sean Molenaar
2698214c41 fix/allow CDATA encoding (#428) 2019-03-17 08:23:37 +01:00
Sean Molenaar
a3246a927d
Parser: Switch to feedIO for parsing instead of picoFeed 2019-01-30 20:36:40 +01:00