you should check for it in a case-insensitive way and supporting both dashes and underscores, like in the current code.
HttpFoundation does not need this, because the keys are already normalized when putting them inside the ServerBag