Obvious error here forcing https always

This would always force https to be used, unless https is true, so I assume author meant 'true' here.