What is this check for? Do we really need it? What problem does it solve? Also, an empty value is valid in HTTP. The comment is superfluous - the code should explain that already.