What would be a good way of reporting a bug/improvement since I don't have an account in Jira?
Basically the VirtualhostHelper has a weakness. If you only specify x-forwarded-proto without x-forwarded-host (which is quite common to do), VirtualhostHelper falls back to using port 80, so you get https://something:80/
which is probably never ever what you want to do.
The fix is easy. On line 128 (in the master branch) rather than setting the serverport to HTTP_PORT_NUMBER, there should be an if scheme is https set it to HTTPS_PORT_NUMBER, else set it to HTTP_PORT_NUMBER