Fix internal sub-request creation

Fixes the creation of internal sub-request in case of disabled trusted
client-ip header