rss-bridge/lib
Mynacol 4450e9b973
Let curl select the default HTTP version (#3249)
This essentially reverts b042412416,
as YouTube seems to have fixed their servers.
At least I was able to query the YouTube endpoint around 150 times with
CURL_HTTP_VERSION_2TLS recently. They even advertise HTTP/3 support with
an `alt-svc` HTTP header now.

This unsets CURLOPT_HTTP_VERSION to let curl decide
on the version. This would support all curl versions and opens the
possibility for HTTP/3, but leads to inconsistent behavior depending
on the underlying curl version.

We don't set CURL_HTTP_VERSION_NONE explicitly, as it is always the curl
default and opens the path to let individual bridges override the HTTP
version where necessary.

Alternatively, setting CURL_HTTP_VERSION_2TLS explicitly would lead to consistent behavior
regardless of the curl version, but might uncover old curl bugs before the
developers enabled HTTP/2 by default.
Additionally, that requires at least PHP 7.0.7 (we require PHP 7.4
already) and curl 7.47.0 [1], released on Jan 27 2016 [2].

See also the discussion on https://github.com/RSS-Bridge/rss-bridge/pull/3249

[1] https://www.php.net/manual/curl.constants.php
[2] https://curl.se/docs/releases.html
2023-02-22 17:48:39 +01:00
..
ActionInterface.php refactor: extract frontpage to template (#3130) 2022-11-07 18:22:54 +01:00
ApiAuthenticationMiddleware.php [core] Implement bearer token authentication (#3043) 2022-10-19 18:39:35 +02:00
AuthenticationMiddleware.php Improve logging and error handling (#3059) 2022-10-16 17:55:43 +02:00
bootstrap.php refactor: rename rssbridge.php to bootstrap.php (#2987) 2022-08-27 23:01:06 +02:00
BridgeAbstract.php feat: use bridge description and short name in search (#2952) 2022-08-06 23:12:30 +02:00
BridgeCard.php fix: case-insensitive config from env, fix #2935 (#2973) 2022-08-23 21:19:53 +02:00
BridgeFactory.php refactor: general code base refactor (#2950) 2022-08-06 22:46:28 +02:00
BridgeInterface.php feat: use bridge description and short name in search (#2952) 2022-08-06 23:12:30 +02:00
CacheFactory.php test: add failing mastodon test (#3255) 2023-02-15 21:22:37 +01:00
CacheInterface.php refactor: general code base refactor (#2950) 2022-08-06 22:46:28 +02:00
Configuration.php fix: dont error out for invalid env names (#3030) 2022-09-12 23:14:11 +02:00
contents.php Let curl select the default HTTP version (#3249) 2023-02-22 17:48:39 +01:00
Debug.php Improve logging and error handling (#3059) 2022-10-16 17:55:43 +02:00
error.php feat: add a proper feed item uid when the bridge errors out (#3237) 2023-02-02 22:53:01 +01:00
FeedExpander.php fix: various php notices (#3145) 2022-11-15 00:30:51 +01:00
FeedItem.php fix: improve FeedExpander (#3103) 2022-10-29 10:27:02 +02:00
FormatAbstract.php refactor: general code base refactor (#2950) 2022-08-06 22:46:28 +02:00
FormatFactory.php Improve logging and error handling (#3059) 2022-10-16 17:55:43 +02:00
FormatInterface.php refactor: html format (#3062) 2022-10-16 12:03:57 +02:00
html.php [Core] Add html/convertLazyLoading (+ document stripRecursiveHTMLSection) (#3157) 2022-11-20 12:41:59 +01:00
Logger.php refactor/fix: css organization and error rendering (#3117) 2022-10-29 10:46:37 +02:00
ParameterValidator.php refactor: general code base refactor (#2950) 2022-08-06 22:46:28 +02:00
php8backports.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
RssBridge.php [core] Merge GET and POST args into request array (#3155) 2022-11-20 12:41:20 +01:00
utils.php fix: produce smaller log records for http exceptions (#3153) 2022-11-18 21:36:06 +01:00
XPathAbstract.php refactor: general code base refactor (#2950) 2022-08-06 22:46:28 +02:00