Make ULS language detection work in https

Change-Id: If8d6792f7f7c4db4b1473755821652f3a1091178