private string GetCorrectHeaderName(String headerKey)
{
string retVal = headerKey.ToLower();
if (retVal.StartsWith("http_")) retVal = retVal.Remove(0, 5); //IIS adds the HTTP_ prefix we need to remove
retVal = retVal.Replace("_", "-"); //escape underscores to dashes
if (this.p_RawHeadersTranlator.ContainsKey(retVal))
{
//inbound data had this header, use that spelling and casing
retVal = (string)this.p_RawHeadersTranlator[retVal];
};
return retVal;
}