Fix HTTP language detection

Fixes #4915 

@DeepDiver1975 @karlitschek