protondrive: route HTTP through rclone's transport
The Proton Drive backend constructed the upstream Proton-API-Bridge without ever passing rclone's HTTP transport. As a result none of rclone's HTTP flags reached Proton: --dump headers, --dump bodies, --no-check-certificate, --user-agent, --bind, --ca-cert, --header, --tpslimit etc. all silently did nothing for this remote, and HTTP traffic was invisible to -vv. Pass fshttp.NewTransport(ctx) through the new Config.Transport hook on the bridge, which forwards it to the updated go-proton-api's WithTransport option and so to the underlying resty client.
This commit is contained in:
@@ -71,8 +71,8 @@ require (
|
||||
github.com/prometheus/client_golang v1.23.2
|
||||
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8
|
||||
github.com/quasilyte/go-ruleguard/dsl v0.3.23
|
||||
github.com/rclone/Proton-API-Bridge v1.0.1
|
||||
github.com/rclone/go-proton-api v1.0.1
|
||||
github.com/rclone/Proton-API-Bridge v1.0.2
|
||||
github.com/rclone/go-proton-api v1.0.2
|
||||
github.com/rclone/gofakes3 v0.0.4
|
||||
github.com/rfjakob/eme v1.2.0
|
||||
github.com/rivo/uniseg v0.4.7
|
||||
|
||||
Reference in New Issue
Block a user