Untested attempt to fix #50

 As @foosel suggested in it
http-request add-header X-Scheme https if { ssl_fc }