Usually thick, white liquid is a sign of some kind of infection, either fungal or bacterial, in which case it would be best to take him to the vet.

I hope that its nothing serious and he gets better soon.