cfg.TLS.Enabled may be changed after plugin setup (here), but redirect plugin doesn't catch it.
redirect: determine the FromScheme at runtime (#1297)
Signed-off-by: Tw <email@example.com>
Thanks for working on this Tw!
Is this thread-safe?
(If not, and if the solution is to introduce locking, let's reconsider how we do the scheme changing instead...)
cfg.TLS.Enabled is setup at the server's initialization. Unless we changed it on the fly later, it is thread-safe IMO.
Thanks for fixing the issue! If a race does crop up because of this, I hope you'll be able to help us fix it. I'll merge this now.