Merge pull request #4810 from konidev20/fix-gh-4768-add-custom-user-agent-for-http-client

Allow custom User-Agent to be specified for outgoing requests
This commit is contained in:
Michael Eischer
2024-05-30 16:34:52 +00:00
committed by GitHub
6 changed files with 100 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ Usage help is available:
--cleanup-cache auto remove old cache directories
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION) (default auto)
-h, --help help for restic
--http-user-agent value set a custom user agent for outgoing http requests
--insecure-no-password use an empty password for the repository, must be passed to every restic command (insecure)
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
--json set output mode to JSON for commands that support it
@@ -134,6 +135,7 @@ command:
--cache-dir directory set the cache directory. (default: use system default cache directory)
--cleanup-cache auto remove old cache directories
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION) (default auto)
--http-user-agent value set a custom user agent for outgoing http requests
--insecure-no-password use an empty password for the repository, must be passed to every restic command (insecure)
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
--json set output mode to JSON for commands that support it