Torrents Stats
- Partagées
- 110.1 TB
- Téléchargées
- 0 bytes
- Ratio
- -
- Messages
- 3 542
- J'aime
- 405 667
- Trophées
- 3 061
- Inscrit
- 18 Juillet 2021
Compatible XF Versions
This simple add-on just allows add/set custom headers to all HTTP requests from XenForo via src/config.php. For example, you may want set Accept-Language for using another language, if remote web-resource respects this header.
Example usage (src/config.php):
PHP:
<?php
// database options ...
// additional options for caching (for example), proxying all HTTP requests and another...
$config['http']['headers'] = [
// Prefers russian language; if not present - then english or any another language
// More details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
'Accept-Language' => 'ru, en;q=0.9, *:q=0.5'
];
toutes mes ressources ici
- 2.2
This simple add-on just allows add/set custom headers to all HTTP requests from XenForo via src/config.php. For example, you may want set Accept-Language for using another language, if remote web-resource respects this header.
Example usage (src/config.php):
PHP:
<?php
// database options ...
// additional options for caching (for example), proxying all HTTP requests and another...
$config['http']['headers'] = [
// Prefers russian language; if not present - then english or any another language
// More details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
'Accept-Language' => 'ru, en;q=0.9, *:q=0.5'
];
Contenu masqué
Vous devez aimer ce post pour à accéder à ce contenu.