Before this fix we were doing the token refresh but ignoring the new tokens. This bug was introduced in v1.39 by 4c0e2f9b3b Fixes #2018 Fixes #2031
4c0e2f9b3b
Also don't keep the swift.Headers as a pointer to a map, just use the map
The purpose of this is to make it easier to maintain and eventually to allow the rclone backends to be re-used in other projects without having to use the rclone configuration system. The new code layout is documented in CONTRIBUTING.