What on earth could cause CGI variables to be empty, but then magically fill in when the whole scope is dumped ?
Why is server_name behaviour different to http_host ?!?
Lucee 5.2.x in Docker on Amazon.
<cfdump var="#CGI.http_host#"/>
<cfdump var="#CGI.server_name#"/>
<cfdump var="#CGI.SERVER_NAME#"/>
<cfdump var="#CGI#" expand="false"/>
<cfdump var="#CGI.http_host#"/>
<cfdump var="#CGI.server_name#"/>
<cfdump var="#CGI.SERVER_NAME#"/>
this prints
string dev.eepartnerportal.co.uk
string
string
CGI Scope (writable)
Entries: 62
string dev.eepartnerportal.co.uk
string dev.eepartnerportal.co.uk
string dev.eepartnerportal.co.uk