mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
feat: add X-Transmission-Rpc-Version (#7958)
This commit is contained in:
@@ -825,6 +825,13 @@ oldest version that is compatible with the current version; i.e. an app coded
|
||||
to use `rpc_version_minimum` would still work on a Transmission release running
|
||||
`rpc_version`.
|
||||
|
||||
Starting from `rpc-version-semver` 6.0.0, Transmission returns the RPC
|
||||
version in an HTTP header `X-Transmission-Rpc-Version: {rpc_version_semver}`
|
||||
in the CSRF HTTP 409 response. This is so
|
||||
that clients supporting both JSON-RPC and the old bespoke API can determine
|
||||
which scheme to use without making any extra requests.
|
||||
Example: `X-Transmission-Rpc-Version: 6.0.0`
|
||||
|
||||
Breaking changes are denoted with a :bomb: emoji.
|
||||
|
||||
Transmission 1.30 (`rpc-version-semver` 1.0.0, `rpc-version`: 1)
|
||||
|
||||
Reference in New Issue
Block a user