Would it stop complaining on 11.4.0 if you replaced the code with?
https://[getfield [HTTP::host] {:} 1][HTTP::uri]
Also, you could implement a simpler code to handle your HTTPS redirects.
https://[HTTP::host][HTTP::uri]
The only difference is that the first code would not include the port specification with the redirect. For example, "http://www.mysite.com:8080/page1" would be redirected to "https://www.mysite.com/page1" when using the first code sample, but would be redirected to "https://www.mysite.com:8080/page1" when using the second sample. You have to use the 1st code if a non-standard port specification is made inside the HTTP Host header. In all other cases, the second code will do.